Realm
gno.land/r/moul/x/daily/calc/v1
Rendered output
RPN Calculator
Result
(empty stack)
Stack (bottom → top)
empty
Usage
Reverse Polish Notation: operands first, operator last.
Push("5")thenPush("3")thenPush("+")→8- Supported operators:
+,-,*,/(integer division) - An operator pops the top two values (a, b) and pushes
a op b. Clear()empties the stack.- Divide-by-zero and underflow abort the transaction.
Query (read-only)
non-crossing functions · no tx, no wallet neededDepth() → int
Top() → int, bool
Call functions (state-changing)
signs a tx via AdenaClear()
Push(token string)
All exported functions (5)
show raw signatures
| Name | Params | Returns |
|---|---|---|
| Push | [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}, {"Name": "token", "Type": "string", "Value": ""}] | — |
| Clear | [{"Name": "cur", "Type": "interface {.seal func(); Address func() .uverse.address; IsCode func() bool; IsCurrent func() bool; IsEphemeral func() bool; IsUser func() bool; IsUserCall func() bool; IsUserRun func() bool; PkgPath func() string; Previous func() .uverse.realm; String func() string; Sub func(string) .uverse.realm; Subpath func() string}", "Value": ""}] | — |
| Depth | — | [{"Name": ".res.0", "Type": "int", "Value": ""}] |
| Top | — | [{"Name": ".res.0", "Type": "int", "Value": ""}, {"Name": ".res.1", "Type": "bool", "Value": ""}] |
| Render | [{"Name": "path", "Type": "string", "Value": ""}] | [{"Name": ".res.0", "Type": "string", "Value": ""}] |
Files
Storage
{
"raw": "storage: 7662, deposit: 766200"
}