Account #14330
| 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 [] #14330/operator) | nil |
update-cert | (fn [id new-metadata-hash new-title] (do (#14330/require-operator) (let [cert (get #14330/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 #14330/registry %0 %4)) (fail :UNDECLARED registry)) %4)))) | nil |
owned-by | (fn [user-id] (cond (get #14330/ownership %0) *result* #{})) | nil |
init-next-id | (fn [start-id] (do (#14330/require-operator) (cond (lookup-meta *address* next-id) (def next-id %0) (fail :UNDECLARED next-id)) %0)) | nil |
next-id | 39 | nil |
ownership | {"cmp9uf8i500qapv1teoso5kyh" #{38},"cmozcvkl1002uqz1sdue6hfdo" #{28,31,30,29,27},"cmov86df2004vr01td3l3dght" #{32},"cmp9cl59i00j8pv1t43eq830d" #{34,35,37,36,33}} | nil |
total-issued | (fn [] (dec #14330/next-id)) | nil |
lookup | (fn [id] (get #14330/registry %0)) | nil |
transfer-cert | (fn [id new-user-id] (do (#14330/require-operator) (let [cert (get #14330/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 #14330/registry %0 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14330/ownership %3 (disj (get #14330/ownership %3) %0))) (fail :UNDECLARED ownership)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14330/ownership %1 (conj (cond (get #14330/ownership %1) *result* #{}) %0))) (fail :UNDECLARED ownership)) %4)))) | nil |
set-operator | (fn [new-operator] (do (cond (not (= *caller* #14330/operator)) (fail :UNAUTHORIZED "Only governance can change the operator") nil) (cond (lookup-meta *address* operator) (def operator %0) (fail :UNDECLARED operator)) %0)) | nil |
registry | {34 {:timestamp 1778997551239,:user-id "cmp9cl59i00j8pv1t43eq830d",:registered-by #14305,:metadata-hash "b87c954fe87c84520e2a9df38d9ef0e454ac4b6bd531677ba0eda222fa48fda0",:title "AmgTwinz 200k in Goyard",:id 34},28 {:timestamp 1778917890476,:user-id "cmozcvkl1002uqz1sdue6hfdo",:registered-by #14305,:metadata-hash "a49e4ef78d9ed8f27ce255e9bf4c7bd554e3ca3c27c8f817499f1464d7255e6d",:title "RIDE OR RUN",:id 28,:updated-at 1779003726586},38 {:timestamp 1779042505594,:user-id "cmp9uf8i500qapv1teoso5kyh",:registered-by #14305,:metadata-hash "90207e143ed39f0d8774e8ddbf92b0950ac90532c2e149860e9782ab09b6dde6",:title "Hace Tiempo",:id 38},31 {:timestamp 1778918151045,:user-id "cmozcvkl1002uqz1sdue6hfdo",:registered-by #14305,:metadata-hash "fea25e061c9ac7d67d9e15cdf36e7b0464e0bec79f4126218463bc3fd2a12783",:title "BACK TO ME",:id 31,:updated-at 1779003728356},35 {:timestamp 1778997673219,:user-id "cmp9cl59i00j8pv1t43eq830d",:registered-by #14305,:metadata-hash "1b21ae8a34c950a2aa8209c94ca2b04c4fa55398c7023c8b83396740d7100cc2",:title "lil craccrocc idiot",:id 35},37 {:timestamp 1778997915968,:user-id "cmp9cl59i00j8pv1t43eq830d",:registered-by #14305,:metadata-hash "a7a516fe4056563ccc028a1a2411ef402dea481f947528c70b43e86531cb64a7",:title "Rayyy For Her Birthday",:id 37},32 {:timestamp 1778956923301,:user-id "cmov86df2004vr01td3l3dght",:registered-by #14305,:metadata-hash "3110a94593999d32473e0e4cbae1ea11d60b8eba830e9d8c0698b3a723984edf",:title "You Are Weak Casanova",:id 32},30 {:timestamp 1778918069780,:user-id "cmozcvkl1002uqz1sdue6hfdo",:registered-by #14305,:metadata-hash "04869dca1b2ed474bee3dec0f32611ca3caf6edbad445fb69d708578f67f4611",:title "EUHARLEE",:id 30,:updated-at 1779003727751},29 {:timestamp 1778917989261,:user-id "cmozcvkl1002uqz1sdue6hfdo",:registered-by #14305,:metadata-hash "28b90cae5cad15be89091e78e5f6e82197c899195fd87634db5f2ff46c62cc91",:title "BACKROAD HALLELUJAH",:id 29,:updated-at 1779003727175},36 {:timestamp 1778997778771,:user-id "cmp9cl59i00j8pv1t43eq830d",:registered-by #14305,:metadata-hash "18973a12ad88b80a15f34fb9cd5fafb90b6ef78ef1551f21293bf9fcee2a652d",:title "lil craccrocc top tier bih",:id 36},33 {:timestamp 1778997411583,:user-id "cmp9cl59i00j8pv1t43eq830d",:registered-by #14305,:metadata-hash "eec623c8644fdc81c95074ea45ebe963b4c4ac52c8a211d06d7211bd6121a732",:title "AmgTwinz Princple",:id 33},27 {:timestamp 1778917593655,:user-id "cmozcvkl1002uqz1sdue6hfdo",:registered-by #14305,:metadata-hash "2f6b32ea39302ce80f67fc879cc8ba7ab9f07402c03afdcef632c8449e6b64f7",:title "SOBER ENOUGH TO FEEL IT",:id 27,:updated-at 1779003725892}} | nil |
register | (fn [user-id metadata-hash title-hint] (do (#14330/require-operator) (let [id #14330/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 #14330/registry %3 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14330/ownership %0 (conj (cond (get #14330/ownership %0) *result* #{}) %3))) (fail :UNDECLARED ownership)) %4))) | nil |
require-operator | (fn [] (cond (not (= *caller* #14330/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 |
|---|