Convex

Convex

Account #14344
Account 14345 / 14345
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 [] #14344/operator)nil
update-cert(fn [id new-metadata-hash new-title] (do (#14344/require-operator) (let [cert (get #14344/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 #14344/registry %0 %4)) (fail :UNDECLARED registry)) %4))))nil
owned-by(fn [user-id] (cond (get #14344/ownership %0) *result* #{}))nil
init-next-id(fn [start-id] (do (#14344/require-operator) (cond (lookup-meta *address* next-id) (def next-id %0) (fail :UNDECLARED next-id)) %0))nil
next-id245nil
ownership{"cmqaxqkxu01alpo1swmjncwbn" #{235,239,237,236,238},"cmpy0g26v0091q01toowgkupl" #{243},"cmqi3uhnz00ker61tz14njf0r" #{242,240,241,234},"cmqo22bnh00capo1tt2w9cbzi" #{244}}nil
total-issued(fn [] (dec #14344/next-id))nil
lookup(fn [id] (get #14344/registry %0))nil
transfer-cert(fn [id new-user-id] (do (#14344/require-operator) (let [cert (get #14344/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 #14344/registry %0 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14344/ownership %3 (disj (get #14344/ownership %3) %0))) (fail :UNDECLARED ownership)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14344/ownership %1 (conj (cond (get #14344/ownership %1) *result* #{}) %0))) (fail :UNDECLARED ownership)) %4))))nil
set-operator(fn [new-operator] (do (cond (not (= *caller* #14344/operator)) (fail :UNAUTHORIZED "Only governance can change the operator") nil) (cond (lookup-meta *address* operator) (def operator %0) (fail :UNDECLARED operator)) %0))nil
registry{242 {:timestamp 1781996408414,:user-id "cmqi3uhnz00ker61tz14njf0r",:registered-by #14305,:metadata-hash "5dc4ef27db8d70a2b4fcadb91c0a8f95b0e562e0d000f946ebcb70012aadf0a9",:title "My Heart Cries Out To You",:id 242},235 {:timestamp 1781792920620,:user-id "cmqaxqkxu01alpo1swmjncwbn",:registered-by #14305,:metadata-hash "a81dd5385b268bac62ecd07c384e759f65041733cec935ecd503e36fce530eb0",:title "Anything Good",:id 235},240 {:timestamp 1781994707016,:user-id "cmqi3uhnz00ker61tz14njf0r",:registered-by #14305,:metadata-hash "ca37c1c4d8fe5fa3d9bca26ca921cb4e731f1995a7372f749b2b69379c2b1c59",:title "The Distance Expands",:id 240},241 {:timestamp 1781996185616,:user-id "cmqi3uhnz00ker61tz14njf0r",:registered-by #14305,:metadata-hash "979c872764b023fd1623d2349a00c3e4826a7f9147c9cc11d6e5f5a98ab05123",:title "The One Regret I Will Never Have - Refined Version",:id 241},234 {:timestamp 1781718252283,:user-id "cmqi3uhnz00ker61tz14njf0r",:registered-by #14305,:metadata-hash "951ac1f6c41eff53e45f72133b65980c797fc6880a265d307850bc1d60e0493d",:title "Can You Hear My Call - edit 2",:id 234},243 {:timestamp 1782016099169,:user-id "cmpy0g26v0091q01toowgkupl",:registered-by #14305,:metadata-hash "b3ac8a287981c8699742a81cae966723f322cd29786bd5ad0edc80a47de601c9",:title "facetime",:id 243},239 {:timestamp 1781793291738,:user-id "cmqaxqkxu01alpo1swmjncwbn",:registered-by #14305,:metadata-hash "6bec8a555879a145df6a23705f50fc1d5e528625549d48ec3ff37bb1d12af18b",:title "Close",:id 239},237 {:timestamp 1781793135297,:user-id "cmqaxqkxu01alpo1swmjncwbn",:registered-by #14305,:metadata-hash "9af51220d2780b0971ff61fbc6af4659dc64dd588eb6e9e744d53836b9debc72",:title "Blame",:id 237},236 {:timestamp 1781793077430,:user-id "cmqaxqkxu01alpo1swmjncwbn",:registered-by #14305,:metadata-hash "2fbf526e5dd43f3259a0014707040b175894e103bb080dbb1c676f777e129a16",:title "Back To Chicago",:id 236},244 {:timestamp 1782063118127,:user-id "cmqo22bnh00capo1tt2w9cbzi",:registered-by #14305,:metadata-hash "ed50c82dbe9c17a0b3edecfd392e5908592476a9e294a71779a5513ae014301e",:title "Wannadrill",:id 244},238 {:timestamp 1781793203707,:user-id "cmqaxqkxu01alpo1swmjncwbn",:registered-by #14305,:metadata-hash "5a6b2b99dc9e28fa56052134de0229d800686c3c276852349a40e8f5c1a06142",:title "BRING IT BACK",:id 238}}nil
register(fn [user-id metadata-hash title-hint] (do (#14344/require-operator) (let [id #14344/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 #14344/registry %3 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14344/ownership %0 (conj (cond (get #14344/ownership %0) *result* #{}) %3))) (fail :UNDECLARED ownership)) %4)))nil
require-operator(fn [] (cond (not (= *caller* #14344/operator)) (fail :UNAUTHORIZED "Only the operator can perform this action") nil))nil
operator#14305nil
Holdings (Empty)

Holdings track token balances and other indexed values by address.

AddressValue