Predefined Structures
Reserved Characters in Paths
In data paths, the following characters are reserved:
Characters | Purpose | Example |
/ | Reserved for path separator | /apps/afan/users |
. | Reserved for rule configs and owner configs | { .write: false, ... |
* | Reserved for owner configs | { "apps": { ".owner": { "owners": { "*": { ... |
$ | Reserved for path variables in rule configs | { transfer: { $from: { $to: { $key: { value: { .write: ... |
{, } | Reserved for variables in built-in function paths | /transfer/{from}/{to}/{key}/value |
#, [, ], <ASCII control characters 0-31 or 127> | Reserved for other purposes in the future | - |
Pre-defined Paths in Database
The following pre-defined paths are used in the blockchain database:
Path | Purpose |
/accounts/$address/balance | Account balance |
/accounts/$address/nonce | Account nonce |
/apps | Applications |
/consensus | Consensus |
/checkin | Check-in |
/deposit/$service_id/$address/$deposit_id | Deposit |
/deposit_accounts/$service_id/$address/$account_id | Deposit accounts |
/escrow | Escrow |
/payments | Payment |
/sharding | Sharding |
/token/name | Token name |
/token/symbol | Token symbol |
/token/total_supply | Token total supply |
/transfer/$from/$to/$key/value | Transfer |
/withdraw/$service_id/$address/$withdraw_id | Withdraw |
Owner configs and rule configs are stored in separate places in the database.
Last updated