wiki-plugin-contract
v0.0.1
Published
Contract plugin for the federated wiki
Maintainers
Readme
Federated Wiki - allyabase plugin
allyabase is a Backend as a Service (BaaS) similar to Firebase and Supabase except it is open, and interoperable with other systems that utilize the Sessionless protocol. allyabase has many features, but the few that are exposed at this time in wiki are enable the signing of smart contracts, and the subsequent creation and/or transfer of nineum tokens upon completed parameters from the contracts. To facilitate this, the plugin exposes the following routes to the client:
Parameters
| name | required | data type | description | |--------------|-----------|-------------------------|-----------------------------------------------------------------------| | pubKey | true | string (hex) | the publicKey of the user's keypair |
Responses
| http code | content-type | response | |---------------|-----------------------------------|---------------------------------------------------------------------| |
200|application/json|USER| |400|application/json|{"code":"400","message":"Bad Request"}|
Parameters
| name | required | data type | description | |--------------|-----------|-------------------------|-----------------------------------------------------------------------| | pubKey | true | string (hex) | the publicKey of the user's keypair |
Responses
| http code | content-type | response | |---------------|-----------------------------------|---------------------------------------------------------------------| |
200|application/json|USER| |400|application/json|{"code":"400","message":"Bad Request"}|
Parameters
| name | required | data type | description | |--------------|-----------|-------------------------|-----------------------------------------------------------------------| | pubKey | true | string (hex) | the publicKey of the user's keypair | | bdo | true | object | the signature from sessionless for the message |
Responses
| http code | content-type | response | |---------------|-----------------------------------|---------------------------------------------------------------------| |
200|application/json|USER| |400|application/json|{"code":"400","message":"Bad Request"}|
Parameters
| name | required | data type | description | |--------------|-----------|-------------------------|-----------------------------------------------------------------------| | toUUID | true | string (hex) | the uuid of the user to grant the nineum | | flavor | true | string (hex) | the flavor of nineum to grant |
Responses
| http code | content-type | response | |---------------|-----------------------------------|---------------------------------------------------------------------| |
200|application/json|USER| |400|application/json|{"code":"400","message":"Bad Request"}|
Parameters
| name | required | data type | description | |--------------|-----------|-------------------------|-----------------------------------------------------------------------| | toUUID | true | string (hex) | the uuid of the user to grant the nineum |
Responses
| http code | content-type | response | |---------------|-----------------------------------|---------------------------------------------------------------------| |
200|application/json|USER| |400|application/json|{"code":"400","message":"Bad Request"}|
Parameters
| name | required | data type | description | |--------------|-----------|-------------------------|-----------------------------------------------------------------------| | toUUID | true | string (hex) | the uuid of the user to grant the nineum | | nineum | true | array of nineum hex strings | the nineum to transfer |
Responses
| http code | content-type | response | |---------------|-----------------------------------|---------------------------------------------------------------------| |
200|application/json|USER| |400|application/json|{"code":"400","message":"Bad Request"}|
Parameters
| name | required | data type | description | |--------------|-----------|-------------------------|-----------------------------------------------------------------------| | thing | true | string | the uuid of the user to grant the nineum |
Responses
| http code | content-type | response | |---------------|-----------------------------------|---------------------------------------------------------------------| |
200|application/json|{signature: <signature>}| |400|application/json|{"code":"400","message":"Bad Request"}|
Parameters
| name | required | data type | description | |--------------|-----------|-------------------------|-----------------------------------------------------------------------| | signature | true | string (hex) | the signature to verify | | message | true | string | the message to check |
Responses
| http code | content-type | response | |---------------|-----------------------------------|---------------------------------------------------------------------| |
200|application/json|USER| |400|application/json|{"code":"400","message":"Bad Request"}|
License
MIT
