Convex

Convex

Account #50
Account 51 / 14299
FieldValueNotes
Account Key
Identicon for 89b5142678bfef7a2245af5ae5b9ab1e10c282b375fa297c5aaeccc48ac97cac
0x89b5142678bfef7a...
Ed25519 public key (null for actors)
Balance
       96,415.421118317
Convex coin balance
Account Fields
FieldValueDescription
:sequence9Number of transactions executed by this account to date.
:key
Identicon for 89b5142678bfef7a2245af5ae5b9ab1e10c282b375fa297c5aaeccc48ac97cac
0x89b5142678bfef7a2245af5ae5b9ab1e10c282b375fa297c5aaeccc48ac97cac
Ed25519 public key of this account. If nil, account cannot execute external transactions (e.g. an actor).
:balance
       96,415.421118317
CVM balance of account. This is used for transaction fees and may be freely transferred.
:allowance8370Memory 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.
:controller#7Account 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!
:environment8 value(s)Symbols defined in this account. Typically used to store data or executable code.
:metadata5 value(s)Metadata attached to symbols defined in this account.
:parentnilParent account. This defines fallback values for symbols not defined in this account.
Environment (8)

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

SymbolValueDescription
withdraw(fn [amount] (do (cond (not (#50/trust/trusted? #50/allocator *caller* :withdraw %0)) (fail :TRUST "Not authorised to withdraw")) (transfer *caller* %0)))nil
set-available(fn [amount] (do (cond (not (#50/trust/trusted? #50/allocator *caller* :set-available %0)) (fail :TRUST "Not authorised as allocator")) (cond (< %0 0) (fail :ARGUMENT "Negative amount!")) (def available-coins (int %0))))nil
distributor#227nil
allocator#50nil
trust#10nil
receive-coin(fn [_ _ _] (accept *offer*))nil
available-coins9415423000007nil
distribute(fn [receiver amount] (do (cond (not (int? %1)) (fail :ARGUMENT "amount must be an integer")) (cond (not (#50/trust/trusted? #50/distributor *caller* :distribute %1)) (fail :TRUST "Not authorised to distribute")) (cond (> %1 #50/available-coins) (fail :FUNDS "Insufficient available coins")) (do (def available-coins (- #50/available-coins %1)) (transfer %0 %1))))nil
Holdings (Empty)

Holdings track token balances and other indexed values by address.

AddressValue