Convex

Convex

Account #14347
Account 14348 / 14350
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 [] #14347/operator)nil
update-cert(fn [id new-metadata-hash new-title] (do (#14347/require-operator) (let [cert (get #14347/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 #14347/registry %0 %4)) (fail :UNDECLARED registry)) %4))))nil
owned-by(fn [user-id] (cond (get #14347/ownership %0) *result* #{}))nil
init-next-id(fn [start-id] (do (#14347/require-operator) (cond (lookup-meta *address* next-id) (def next-id %0) (fail :UNDECLARED next-id)) %0))nil
next-id267nil
ownership{"cmqy0a2c3017br51taf0c4sil" #{249},"cmpy0g26v0091q01toowgkupl" #{248},"cmqz9cbci01osr51thjc8lj2y" #{265},"cmqyaix2e01a2r51t2bh3a4wh" #{264,254,259,256,251,262,263,258,257,252,253,255,261,250,260},"cmqzdv8ur01qir51tav0z9d8j" #{266}}nil
total-issued(fn [] (dec #14347/next-id))nil
lookup(fn [id] (get #14347/registry %0))nil
transfer-cert(fn [id new-user-id] (do (#14347/require-operator) (let [cert (get #14347/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 #14347/registry %0 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14347/ownership %3 (disj (get #14347/ownership %3) %0))) (fail :UNDECLARED ownership)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14347/ownership %1 (conj (cond (get #14347/ownership %1) *result* #{}) %0))) (fail :UNDECLARED ownership)) %4))))nil
set-operator(fn [new-operator] (do (cond (not (= *caller* #14347/operator)) (fail :UNAUTHORIZED "Only governance can change the operator") nil) (cond (lookup-meta *address* operator) (def operator %0) (fail :UNDECLARED operator)) %0))nil
registry{264 {:timestamp 1782692508963,:user-id "cmqyaix2e01a2r51t2bh3a4wh",:registered-by #14305,:metadata-hash "87329d20f4876888d69f67227e9e25a5f60ec2f18238df6b4944b63900477b02",:title "CURRY GOAT - 7:27:23, 11.35 AM",:id 264,:updated-at 1782754034280},254 {:timestamp 1782682305234,:user-id "cmqyaix2e01a2r51t2bh3a4wh",:registered-by #14305,:metadata-hash "fcad73bde6acd029448d350549003e748538ceacfcf15b66f376ec1b7061b219",:title "water",:id 254,:updated-at 1782754028286},259 {:timestamp 1782682724519,:user-id "cmqyaix2e01a2r51t2bh3a4wh",:registered-by #14305,:metadata-hash "d6dff80c856625fa39d17eaf11d4413881a8c8483e6325493c67efdfa20577e3",:title "long story",:id 259,:updated-at 1782754031236},256 {:timestamp 1782682477835,:user-id "cmqyaix2e01a2r51t2bh3a4wh",:registered-by #14305,:metadata-hash "d34b73e654bfe38fd84cf1a3442b480276737e3d05a357f141d14bc42b08cb95",:title "trumpets hiphop",:id 256,:updated-at 1782754030090},251 {:timestamp 1782682040221,:user-id "cmqyaix2e01a2r51t2bh3a4wh",:registered-by #14305,:metadata-hash "e91b4fcc61d5233ca828f401302e10daaf63ac3f672c94e5bdf6eb7730bb44fc",:title "Pianos Beat",:id 251,:updated-at 1782754026481},265 {:timestamp 1782740389257,:user-id "cmqz9cbci01osr51thjc8lj2y",:registered-by #14305,:metadata-hash "3cbb31fd96c9d4c6bd5bd7bfb2e23f53f374d5eba4f05e1eb1610a80172d915d",:title "Playaz",:id 265,:updated-at 1782754034891},262 {:timestamp 1782682953132,:user-id "cmqyaix2e01a2r51t2bh3a4wh",:registered-by #14305,:metadata-hash "902f342fb4f214f84120b141fddeb547bf527db13e9623b5376e6d7ee92a1d6c",:title "CURRY GOAT",:id 262,:updated-at 1782754033169},263 {:timestamp 1782683018035,:user-id "cmqyaix2e01a2r51t2bh3a4wh",:registered-by #14305,:metadata-hash "8d9afff9bbd2ab11b7f207d92b0547a506ce79cfc04a42742d9d81610edc0b40",:title "big hall",:id 263,:updated-at 1782754033706},266 {:timestamp 1782747950246,:user-id "cmqzdv8ur01qir51tav0z9d8j",:registered-by #14305,:metadata-hash "6188c5c2629d634bd6b81bd1ec61a67950ae27f95915a77b5b834c5a1563faa8",:title "#Fun",:id 266},258 {:timestamp 1782682628840,:user-id "cmqyaix2e01a2r51t2bh3a4wh",:registered-by #14305,:metadata-hash "ffc5507a4cb9f0eb842f4f1fb4ba1496598717341bffeee762cdb555bea044dc",:title "bridges",:id 258,:updated-at 1782754030687},257 {:timestamp 1782682554298,:user-id "cmqyaix2e01a2r51t2bh3a4wh",:registered-by #14305,:metadata-hash "b5299f4584b4626246dc3284dbbdd9dca39bfbb7310aa709c63f7d2756913307",:title "honors",:id 257,:updated-at 1782754028876},252 {:timestamp 1782682106226,:user-id "cmqyaix2e01a2r51t2bh3a4wh",:registered-by #14305,:metadata-hash "b7c64a326afeaabe33d3414dd8b5d70fc02d57dbcfdbe5ffc804dc24a03a3b59",:title "southside - 9:19:23, 2.02 PM",:id 252,:updated-at 1782754027092},253 {:timestamp 1782682243319,:user-id "cmqyaix2e01a2r51t2bh3a4wh",:registered-by #14305,:metadata-hash "7ddb10e5199c0537d0f0b02e7b32ec3c1ba42b7c7d0557fb35978ba2b99cee76",:title "benny",:id 253,:updated-at 1782754027673},255 {:timestamp 1782682403310,:user-id "cmqyaix2e01a2r51t2bh3a4wh",:registered-by #14305,:metadata-hash "bd9081a67cf9de18f0b95081af17a8820ad661878c982e80c3f31f2c26abff25",:title "jungles",:id 255,:updated-at 1782754029482},261 {:timestamp 1782682854323,:user-id "cmqyaix2e01a2r51t2bh3a4wh",:registered-by #14305,:metadata-hash "50a89265ba2ebd89e67a24e2a47aa293fc9f2e7e8e19e481bba80cd4bc54f0c4",:title "alpha groove",:id 261,:updated-at 1782754032594},250 {:timestamp 1782681953316,:user-id "cmqyaix2e01a2r51t2bh3a4wh",:registered-by #14305,:metadata-hash "1aa2a561c56f6cb5e8fdf6656815a9697c7b82038556a05319c0251ca2c192a8",:title "80's rock - 9:6:23, 9.48 PM",:id 250,:updated-at 1782754025884},248 {:timestamp 1782620749866,:user-id "cmpy0g26v0091q01toowgkupl",:registered-by #14305,:metadata-hash "20b64962167725e67831c2df20fe1f1bd7ba6c24d8cf20289cebe8a333cb797c",:title "Dying For",:id 248,:updated-at 1782658617100},260 {:timestamp 1782682788937,:user-id "cmqyaix2e01a2r51t2bh3a4wh",:registered-by #14305,:metadata-hash "f3d8d49e0e3f21fb352a489ad763f455209d4b72d48daf15263c94cba419f0fb",:title "charmed",:id 260,:updated-at 1782754031988},249 {:timestamp 1782664801396,:user-id "cmqy0a2c3017br51taf0c4sil",:registered-by #14305,:metadata-hash "57a6ca8a7e883fc9b37c132cace5acfd2359d3e2ef91ee3892353f68aaa5f717",:title "RattaTat",:id 249,:updated-at 1782754025278}}nil
register(fn [user-id metadata-hash title-hint] (do (#14347/require-operator) (let [id #14347/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 #14347/registry %3 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14347/ownership %0 (conj (cond (get #14347/ownership %0) *result* #{}) %3))) (fail :UNDECLARED ownership)) %4)))nil
require-operator(fn [] (cond (not (= *caller* #14347/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