System queries
rell.get_rell_version(): text
Retrieves Rell's version information.
Returns:
- A string containing the Rell version (e.g., "0.10.1")
rell.get_postchain_version(): text
Retrieves Postchain's version information.
Returns:
- A string containing the Postchain version (e.g., "3.0.0").
rell.get_build(): text
Retrieves Rell's detailed build information.
Returns:
- A string containing the Rell build description (e.g., "rell: 0.10.1; postchain: 3.0.0; time: 2019-11-25T17:25:52+0000; branch: v0.10.1; commit: f875de6 (2019-11-25T10:37:18+0000); dirty: true").
rell.get_build_details(): map<text, text>
Retrieves Rell's detailed build information as a key-value map.
Returns:
-
A dictionary containing Rell's build details (e.g., keys: "rell.version", "rell.commit.id").
rell.branch: v0.10.1
rell.build.time: 2019-11-25T17:25:52+0000
rell.version: 0.10.1
rell.commit.id: f875de6
rell.commit.id.full: f875de60555284a53442e072e4fd4dda0029f792
rell.commit.message.short: Commit message...
rell.commit.message.full: Commit message...
rell.commit.time: 2019-11-25T10:37:18+0000
rell.dirty: true
postchain.version: 3.0.0
kotlin.version: 1.3.21
rell.get_app_structure(): map<text, gtv>
Shows how your Rell dapp is built, revealing its modules and definitions. Definitions are entities, objects, structs, enums, operations, queries and functions.
Returns:
-
The type of the return value is GTV. Attributes (values) of entities, objects, structs and enums are returned as an array.
Rell code example:
struct module_args {
x: integer;
y: text;
}Corresponding app structure example (fragment):
{
"structs": {
"module_args": {
"attributes": [
{ "mutable": 0, "name": "x", "type": "integer" },
{ "mutable": 0, "name": "y", "type": "text" }
]
}
}
}