Convex

Convex

Account #140
Account 141 / 141
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!
:environment14 value(s)Symbols defined in this account. Typically used to store data or executable code.
:metadata10 value(s)Metadata attached to symbols defined in this account.
:parentnilParent account. This defines fallback values for symbols not defined in this account.
Environment (14)

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

SymbolValueDescription
get-operator(fn [] #140/operator)nil
update-cert(fn [id new-metadata-hash new-title] (do (#140/require-operator) (let [cert (get #140/registry %0) ] (cond (nil? %3) (fail :NOT-FOUND "Certificate does not exist") nil) (let [updated (assoc %3 :metadata-hash %1 :title %2 :updated-at *timestamp*) ] (cond (lookup-meta *address* registry) (def registry (assoc #140/registry %0 %4)) (fail :UNDECLARED registry)) %4))))nil
owned-by(fn [user-id] (cond (get #140/ownership %0) *result* #{}))nil
init-next-id(fn [start-id] (do (#140/require-operator) (cond (lookup-meta *address* next-id) (def next-id %0) (fail :UNDECLARED next-id)) %0))nil
next-id9nil
ownership{"integration-test-1789674226789" #{1},"4ceea71b-2394-4b02-bdb5-e5e4dbf94f7d" #{5,4,2,7,8,3,6}}nil
total-issued(fn [] (dec #140/next-id))nil
lookup(fn [id] (get #140/registry %0))nil
transfer-cert(fn [id new-user-id] (do (#140/require-operator) (let [cert (get #140/registry %0) ] (cond (nil? %2) (fail :NOT-FOUND "Certificate does not exist") nil) (let [old-user (get %2 :user-id) updated (assoc %2 :user-id %1) ] (cond (lookup-meta *address* registry) (def registry (assoc #140/registry %0 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #140/ownership %3 (disj (get #140/ownership %3) %0))) (fail :UNDECLARED ownership)) (cond (lookup-meta *address* ownership) (def ownership (assoc #140/ownership %1 (conj (cond (get #140/ownership %1) *result* #{}) %0))) (fail :UNDECLARED ownership)) %4))))nil
set-operator(fn [new-operator] (do (cond (not (= *caller* #140/operator)) (fail :UNAUTHORIZED "Only governance can change the operator") nil) (cond (lookup-meta *address* operator) (def operator %0) (fail :UNDECLARED operator)) %0))nil
registry{5 {:timestamp 1789677664770,:user-id "4ceea71b-2394-4b02-bdb5-e5e4dbf94f7d",:registered-by #139,:metadata-hash "9f50a5081f575d23e51868a79680f9272ca19c78222909f7648662eff9be504f",:title "FIRED UP",:id 5},4 {:timestamp 1789677664371,:user-id "4ceea71b-2394-4b02-bdb5-e5e4dbf94f7d",:registered-by #139,:metadata-hash "2aaceb4c51dade35b4cf1d74b18215477c6149c6ac329b6346f9dd0c629793f1",:title "AVALANCHE",:id 4},2 {:timestamp 1789677663424,:user-id "4ceea71b-2394-4b02-bdb5-e5e4dbf94f7d",:registered-by #139,:metadata-hash "97e6df428243d28dde074e6fccac427a3c42a1bf47d0bb33e88a186897b57c38",:title "FIRED UP",:id 2},7 {:timestamp 1789677665629,:user-id "4ceea71b-2394-4b02-bdb5-e5e4dbf94f7d",:registered-by #139,:metadata-hash "c8526f9f7f3f684313c39bf35825cbaa8a3bf93db2f3dd8fe35a2d560a4ee92d",:title "LIVIN' LOVIN' LIFE",:id 7},8 {:timestamp 1789677666056,:user-id "4ceea71b-2394-4b02-bdb5-e5e4dbf94f7d",:registered-by #139,:metadata-hash "3bddf7bc5f3c9b855dd9b1ed9175f56f9ef832c41bb1774986d7f3893984a2ee",:title "LIVIN LOVIN LIFE",:id 8},3 {:timestamp 1789677663854,:user-id "4ceea71b-2394-4b02-bdb5-e5e4dbf94f7d",:registered-by #139,:metadata-hash "d7feacd5d82737b5a648aef08ced789039bebac09066a26a61e882c80aaa886a",:title "LIVIN' LOVIN' LIFE",:id 3},6 {:timestamp 1789677665197,:user-id "4ceea71b-2394-4b02-bdb5-e5e4dbf94f7d",:registered-by #139,:metadata-hash "a5f302d4f5fc84a5a8b89050756dce848bec09f58961c8bbc938a69b4ed49ed2",:title "FIRED UP",:id 6},1 {:timestamp 1789674227803,:user-id "integration-test-1789674226789",:registered-by #139,:metadata-hash "updated1a0b0e5893e",:title "Integration Test 2026-09-17T19:43:46.789Z (updated)",:id 1,:updated-at 1789674228720}}nil
register(fn [user-id metadata-hash title-hint] (do (#140/require-operator) (let [id #140/next-id cert (hash-map :timestamp *timestamp* :user-id %0 :registered-by *caller* :metadata-hash %1 :title %2 :id %3) ] (cond (lookup-meta *address* next-id) (def next-id (inc %3)) (fail :UNDECLARED next-id)) (cond (lookup-meta *address* registry) (def registry (assoc #140/registry %3 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #140/ownership %0 (conj (cond (get #140/ownership %0) *result* #{}) %3))) (fail :UNDECLARED ownership)) %4)))nil
require-operator(fn [] (cond (not (= *caller* #140/operator)) (fail :UNAUTHORIZED "Only the operator can perform this action") nil))nil
operator#139nil
Holdings (Empty)

Holdings track token balances and other indexed values by address.

AddressValue