Account #14340
| Field | Value | Notes |
|---|---|---|
| Account Key | null | Ed25519 public key (null for actors) |
| Balance | | Convex coin balance |
| Field | Value | Notes |
|---|---|---|
| Account Key | null | Ed25519 public key (null for actors) |
| Balance | | Convex coin balance |
| Field | Value | Description |
|---|---|---|
:sequence | 0 | Number of transactions executed by this account to date. |
:key | nil | Ed25519 public key of this account. If nil, account cannot execute external transactions (e.g. an actor). |
:balance | | CVM balance of account. This is used for transaction fees and may be freely transferred. |
:allowance | 0 | Memory allowance credit on the CVM. If positive, the account may allocated up to this amount of memory before incurring fees for additional memory. |
:holdings | 0 value(s) | Storage for holdings data referenced by other accounts. |
:controller | nil | Account 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! |
:environment | 14 value(s) | Symbols defined in this account. Typically used to store data or executable code. |
:metadata | 10 value(s) | Metadata attached to symbols defined in this account. |
:parent | nil | Parent account. This defines fallback values for symbols not defined in this account. |
The Environment contains symbols defined in this account. These may be referenced like: #45/symbol-name
| Symbol | Value | Description |
|---|---|---|
get-operator | (fn [] #14340/operator) | nil |
update-cert | (fn [id new-metadata-hash new-title] (do (#14340/require-operator) (let [cert (get #14340/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 #14340/registry %0 %4)) (fail :UNDECLARED registry)) %4)))) | nil |
owned-by | (fn [user-id] (cond (get #14340/ownership %0) *result* #{})) | nil |
init-next-id | (fn [start-id] (do (#14340/require-operator) (cond (lookup-meta *address* next-id) (def next-id %0) (fail :UNDECLARED next-id)) %0)) | nil |
next-id | 165 | nil |
ownership | {"cmpxnhqfw005fq01tfu6thny6" #{150},"cmptbr7x000nhpw1tvdr12yae" #{164,163,159,162,161,160},"cmq1eqaqh00woq01tff6c4ibw" #{156,154},"cmpqgdzhr000apw1t2scgwqzm" #{155},"cmpy0g26v0091q01toowgkupl" #{151,152,153},"cmq4wbsuk01nbq01t8z9ora7i" #{158},"cmq4rt8ce01lgq01t2qohvyay" #{157}} | nil |
total-issued | (fn [] (dec #14340/next-id)) | nil |
lookup | (fn [id] (get #14340/registry %0)) | nil |
transfer-cert | (fn [id new-user-id] (do (#14340/require-operator) (let [cert (get #14340/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 #14340/registry %0 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14340/ownership %3 (disj (get #14340/ownership %3) %0))) (fail :UNDECLARED ownership)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14340/ownership %1 (conj (cond (get #14340/ownership %1) *result* #{}) %0))) (fail :UNDECLARED ownership)) %4)))) | nil |
set-operator | (fn [new-operator] (do (cond (not (= *caller* #14340/operator)) (fail :UNAUTHORIZED "Only governance can change the operator") nil) (cond (lookup-meta *address* operator) (def operator %0) (fail :UNDECLARED operator)) %0)) | nil |
registry | {164 {:timestamp 1780908620852,:user-id "cmptbr7x000nhpw1tvdr12yae",:registered-by #14305,:metadata-hash "c9d43427f0e342369176e1deff275f287a37be1d766140e55ebcfc9b75ba60d8",:title "GivItUp",:id 164,:updated-at 1780936035001},156 {:timestamp 1780819380836,:user-id "cmq1eqaqh00woq01tff6c4ibw",:registered-by #14305,:metadata-hash "53281261db9647def2dbd2faa47b10e90e57e5857a37bd85d3a9440342489dc0",:title "quarter-past-midnight-(blueprint-mix)",:id 156,:updated-at 1780939597449},151 {:timestamp 1780488879723,:user-id "cmpy0g26v0091q01toowgkupl",:registered-by #14305,:metadata-hash "781eac1d2f03d078f0c502c0d965a2e552d7ffcb87f6a9d5b0a5631eeaf68270",:title "Same Road",:id 151,:updated-at 1780530123206},150 {:timestamp 1780466341545,:user-id "cmpxnhqfw005fq01tfu6thny6",:registered-by #14305,:metadata-hash "157d792389f5537e075388d1240b59d4f3ece1411030cc78dfcf1e2515a8c2d7",:title "reggaetonsitou 98bpm",:id 150,:updated-at 1780530122511},157 {:timestamp 1780897080653,:user-id "cmq4rt8ce01lgq01t2qohvyay",:registered-by #14305,:metadata-hash "6f597e01b9556aaee360c414d4f0632d8e4d452238d5d0d4f9be6ca504608ec4",:title "Dont trust",:id 157,:updated-at 1780936030342},163 {:timestamp 1780907673305,:user-id "cmptbr7x000nhpw1tvdr12yae",:registered-by #14305,:metadata-hash "d3efcd0a27ca95b69fa0bfbfb68a037b884d07dc8f5d10de45c7ddf4057f0873",:title "SewKold",:id 163,:updated-at 1780936034367},155 {:timestamp 1780794797926,:user-id "cmpqgdzhr000apw1t2scgwqzm",:registered-by #14305,:metadata-hash "de83c2994fdeeee97571103fb3d971d935c2fe4126c36f11715e3b1cebd8106b",:title "Who knows",:id 155,:updated-at 1780843316764},159 {:timestamp 1780907027660,:user-id "cmptbr7x000nhpw1tvdr12yae",:registered-by #14305,:metadata-hash "e60c97ff3d0faeb8c86b53e522cec54d0b317262edf015a9294daf2d8058913c",:title "BicentennialBaby",:id 159,:updated-at 1780936031833},158 {:timestamp 1780905823225,:user-id "cmq4wbsuk01nbq01t8z9ora7i",:registered-by #14305,:metadata-hash "86795cc3b921802a9b323afac688df98f17a045e67791da9062c7054ae007120",:title "In The Mix",:id 158,:updated-at 1780936031133},162 {:timestamp 1780907613142,:user-id "cmptbr7x000nhpw1tvdr12yae",:registered-by #14305,:metadata-hash "1b3e8fd1af9fe61efb6c7df056ca2d82ad52bf5dc6326006953fe2124d8bf08a",:title "ManUpp",:id 162,:updated-at 1780936033729},154 {:timestamp 1780693382754,:user-id "cmq1eqaqh00woq01tff6c4ibw",:registered-by #14305,:metadata-hash "079fc5ecc5a1ab6ac11a613cc139b75b27bfd55e055bbbd60572cd2b43df942d",:title "NeverMind Snow White",:id 154,:updated-at 1780811085783},152 {:timestamp 1780490374432,:user-id "cmpy0g26v0091q01toowgkupl",:registered-by #14305,:metadata-hash "da9441057d5bad47ac4638d9c923d0d3c49d218d0d46cfa7e5aca528ebd8651e",:title "Balboa Park",:id 152,:updated-at 1780530123811},161 {:timestamp 1780907450639,:user-id "cmptbr7x000nhpw1tvdr12yae",:registered-by #14305,:metadata-hash "a5937e473b2f5700f778403ff7aafcc722bde2d08a1d280a7689465265a23a76",:title "MyLife",:id 161,:updated-at 1780936033103},160 {:timestamp 1780907328233,:user-id "cmptbr7x000nhpw1tvdr12yae",:registered-by #14305,:metadata-hash "92d30ade9cf9b13f579cd07fa1e46c312b6201a8267be7595191e1d521c941a4",:title "D.M.S",:id 160,:updated-at 1780936032499},153 {:timestamp 1780490602291,:user-id "cmpy0g26v0091q01toowgkupl",:registered-by #14305,:metadata-hash "60b6447ac86b3b26eb4911c27e1ba849ef6865d800eb195439cffbe5a45f3549",:title "Koa's Song",:id 153,:updated-at 1780530124387}} | nil |
register | (fn [user-id metadata-hash title-hint] (do (#14340/require-operator) (let [id #14340/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 #14340/registry %3 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14340/ownership %0 (conj (cond (get #14340/ownership %0) *result* #{}) %3))) (fail :UNDECLARED ownership)) %4))) | nil |
require-operator | (fn [] (cond (not (= *caller* #14340/operator)) (fail :UNAUTHORIZED "Only the operator can perform this action") nil)) | nil |
operator | #14305 | nil |
Holdings track token balances and other indexed values by address.
| Address | Value |
|---|