Convex

Convex

Account #14282
Account 14283 / 14299
FieldValueNotes
Account KeynullEd25519 public key (null for actors)
Balance
            0.000000000
Convex coin balance
Account Fields
FieldValueDescription
:sequence0Number of transactions executed by this account to date.
:keynilEd25519 public key of this account. If nil, account cannot execute external transactions (e.g. an actor).
:balance
            0.000000000
CVM balance of account. This is used for transaction fees and may be freely transferred.
:allowance0Memory allowance credit on the CVM. If positive, the account may allocated up to this amount of memory before incurring fees for additional memory.
:holdings0 value(s)Storage for holdings data referenced by other accounts.
:controllernilAccount 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!
:environment3 value(s)Symbols defined in this account. Typically used to store data or executable code.
:metadata2 value(s)Metadata attached to symbols defined in this account.
:parentnilParent account. This defines fallback values for symbols not defined in this account.
Environment (3)

The Environment contains symbols defined in this account. These may be referenced like: #45/symbol-name

SymbolValueDescription
donate(fn [cause] (let [donation *offer* ] (cond (> %1 0) (let [prev-donations (get #14282/all-donations %0 0) ] (accept %1) (cond (lookup-meta *address* all-donations) (def all-donations (assoc #14282/all-donations %0 (+ %2 %1))) (fail :UNDECLARED all-donations)) (return "Thanks for your donation")) (fail :FUNDS "No donation offered!"))))nil
collect(fn [cause] (cond (((fn [sym] (get (#9/read %0) 0)) convex.trust)/trusted? %0 *caller*) (let [amt (get #14282/all-donations %0 0) ] (cond (lookup-meta *address* all-donations) (def all-donations (dissoc #14282/all-donations %0)) (fail :UNDECLARED all-donations)) (transfer *caller* %1)) (fail :TRUST "Not authorised to collect funds")))nil
all-donations{}nil
Holdings (Empty)

Holdings track token balances and other indexed values by address.

AddressValue