Add a Settings or Account section on the menu
Local settings / wallet management
-
View their address -
View their current balance -
View the account seed -
Export the private key (after confirming the passphrase)#114 (closed)
Decentralized metadata settings
On the page to edit the profile of an Entity, add a field to edit the URI of the endpoint that will handle registration requests.
Info: https://vocdoni.io/docs/#/architecture/components/entity?id=register
- When creating an entity, this field is currently read from env
ENTITY_MANAGER_REGISTER_URL
- This should be set by default (no need to show a field there)
- Editing the profile should have an
Advanced
section- This section should allow updating this URI
Backend settings (private info)
- Retrieve the
callbackUrl
andcallbackSecret
(getEntity) fields from the Manager backend + display it
//request
{
method: "getEntity",
// entityId: "..." => public key => address => getEntityId()
}
// + signature
//response
{
ok: bool
entity: {
"address": "0x.....",
"callbackUrl": "http",
"callbackSecret": "x45gse53wedfg",
"email": "mail@entity.org",
"name": "EntityName",
"censusManagersAddresses": ["0x434223edfa","0x434223edfc"],
"origin": ["Token"], //"Token" | "Form" | "DB"
}
}
- Edit
callbackUrl
andcallbackSecret
of the entity on the backend
//request
{
method: "updateEntity",
// entityId: "..." => public key => address => getEntityId()
entity: {
"address": "0x.....",
"callbackUrl": "http",
"callbackSecret": "x45gse53wedfg",
"email": "mail@entity.org",
"name": "EntityName",
"censusManagersAddresses": ["0x434223edfa","0x434223edfc"],
"origin": ["Token","DB"],//"Token" | "Form" | "DB"
}
}
// + signature
//response
{
ok: bool
}
- Implement the JSON messages sent to the backend
Edited by Òscar Casajuana