Account #74
| Field | Value | Notes |
|---|---|---|
| Account Key | null | Ed25519 public key (null for actors) |
| Balance | | Convex coin balance |
| Field | Value | Notes |
|---|---|---|
| Account Key | null | Ed25519 public key (null for actors) |
| Balance | | Convex coin balance |
| Field | Value | Description |
|---|---|---|
:sequence | 0 | Number of transactions executed by this account to date. |
:key | nil | Ed25519 public key of this account. If nil, account cannot execute external transactions (e.g. an actor). |
:balance | | CVM balance of account. This is used for transaction fees and may be freely transferred. |
:allowance | 0 | Memory allowance credit on the CVM. If positive, the account may allocated up to this amount of memory before incurring fees for additional memory. |
:holdings | 0 value(s) | Storage for holdings data referenced by other accounts. |
:controller | #6 | Account controller. If set, the controller can execute code in this account (e.g. change the key). If you don't trust the controller, don't trust the account! |
:environment | 7 value(s) | Symbols defined in this account. Typically used to store data or executable code. |
:metadata | 5 value(s) | Metadata attached to symbols defined in this account. |
:parent | nil | Parent account. This defines fallback values for symbols not defined in this account. |
The Environment contains symbols defined in this account. These may be referenced like: #45/symbol-name
| Symbol | Value | Description |
|---|---|---|
check-trusted? | (fn [subject action object] (do (cond *scope* *result* (fail :ARGUMENT "Null scope ID")) (let [rec (#74/mons *scope*) ] (cond %3 *result* (return false)) (#10/trusted? (cond (first %3) *result* (return false)) %0 %1 %2)))) | nil |
update | (fn [new-monitor] (let [rec (#74/mons *scope*) ] (cond %1 *result* (fail :ARGUMENT "Delegated trust monitor ID not valid")) (cond (#10/trusted? (second %1) *caller* :update (vector *address* *scope*)) *result* (fail :TRUST "Controller not valid")) (def mons (assoc #74/mons *scope* (assoc %1 0 %0))) %0)) | ["Creates new delegated trust monitor"] |
change-control | (fn [controller] (let [rec (#74/mons *scope*) ] (cond %1 *result* (fail :ARGUMENT "Delegated trust monitor ID not valid")) (cond (#10/trusted? (second %1) *caller* :change-control (vector *address* *scope*)) *result* (fail :TRUST "Controller not valid")) (def mons (assoc #74/mons *scope* (assoc %1 1 %0))) %0)) | nil |
create | (fn ([monitor] (recur %0 *caller*)) ([monitor controller] (let [id #74/next-id rec (vector %0 %1) ] (def mons (assoc #74/mons %2 %3)) (def next-id (inc %2)) %2))) | ["Creates new delegated trust monitor"] |
next-id | 1 | nil |
trust | #10 | nil |
mons | {} | nil |
Holdings track token balances and other indexed values by address.
| Address | Value |
|---|