Account #14369
| 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 [] #14369/operator) | nil |
update-cert | (fn [id new-metadata-hash new-title] (do (#14369/require-operator) (let [cert (get #14369/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 #14369/registry %0 %4)) (fail :UNDECLARED registry)) %4)))) | nil |
owned-by | (fn [user-id] (cond (get #14369/ownership %0) *result* #{})) | nil |
init-next-id | (fn [start-id] (do (#14369/require-operator) (cond (lookup-meta *address* next-id) (def next-id %0) (fail :UNDECLARED next-id)) %0)) | nil |
next-id | 755 | nil |
ownership | {"cmqg2bgwl00d9r61tthm6rtzl" #{747},"cmopvtfvq001aps1udhrj7nvy" #{742},"cmuqemy2i003qpk1tenh3ixw1" #{744,743},"cmusq9y2c00nipk1tzew8xcwc" #{749,752,754,748,750,751,753},"cmqebjy8x001er61t01h9ktpe" #{746,745}} | nil |
total-issued | (fn [] (dec #14369/next-id)) | nil |
lookup | (fn [id] (get #14369/registry %0)) | nil |
transfer-cert | (fn [id new-user-id] (do (#14369/require-operator) (let [cert (get #14369/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 #14369/registry %0 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14369/ownership %3 (disj (get #14369/ownership %3) %0))) (fail :UNDECLARED ownership)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14369/ownership %1 (conj (cond (get #14369/ownership %1) *result* #{}) %0))) (fail :UNDECLARED ownership)) %4)))) | nil |
set-operator | (fn [new-operator] (do (cond (not (= *caller* #14369/operator)) (fail :UNAUTHORIZED "Only governance can change the operator") nil) (cond (lookup-meta *address* operator) (def operator %0) (fail :UNDECLARED operator)) %0)) | nil |
registry | {749 {:timestamp 1791053099256,:user-id "cmusq9y2c00nipk1tzew8xcwc",:registered-by #14305,:metadata-hash "0641f3d5cbd6915cf9739ac384c3535abeddc91dce02a505af38fdb122636e9c",:title "Bar room Funk",:id 749,:updated-at 1791129420285},746 {:timestamp 1790977418671,:user-id "cmqebjy8x001er61t01h9ktpe",:registered-by #14305,:metadata-hash "8cb99ffd346df908e6c82e804175b341a62be048b20328e55406c178f7bfb728",:title "Heavy Like Rain",:id 746,:updated-at 1791067319937},747 {:timestamp 1791025935573,:user-id "cmqg2bgwl00d9r61tthm6rtzl",:registered-by #14305,:metadata-hash "61fc6c881402d95609b51fbbb1fc94badf0b21204ebf57b83d2f64132e3dc552",:title "Buggy Turner",:id 747,:updated-at 1791067318786},752 {:timestamp 1791053604599,:user-id "cmusq9y2c00nipk1tzew8xcwc",:registered-by #14305,:metadata-hash "eaef98ffa72c5584fbb97f080b0425ef5ab91ca19c801375fc39ac0bdf143dd4",:title "Shazoom",:id 752,:updated-at 1791129422737},744 {:timestamp 1790913385697,:user-id "cmuqemy2i003qpk1tenh3ixw1",:registered-by #14305,:metadata-hash "8015780eb0cbf4436858c5b46a108ad59760b746bf817166ea4a517a558ca1d7",:title "Church Boy",:id 744,:updated-at 1791066604753},754 {:timestamp 1791053947397,:user-id "cmusq9y2c00nipk1tzew8xcwc",:registered-by #14305,:metadata-hash "232a15a87188e21a5c85845d5b7b05f13503fbe70523edb4b439ca54ea08e0c0",:title "Break It Down",:id 754,:updated-at 1791129423277},748 {:timestamp 1791052904371,:user-id "cmusq9y2c00nipk1tzew8xcwc",:registered-by #14305,:metadata-hash "0a104ae722acb38e1e78113a1c69da327ff0384adb10021f4efa13b4d48896ae",:title "Florence",:id 748,:updated-at 1791129419650},745 {:timestamp 1790977360499,:user-id "cmqebjy8x001er61t01h9ktpe",:registered-by #14305,:metadata-hash "231f996eef625d94050fb9ec0f62a7af6ef353cae651b21e1008ed1168c85791",:title "Be My Downfall",:id 745,:updated-at 1791067319362},743 {:timestamp 1790913209058,:user-id "cmuqemy2i003qpk1tenh3ixw1",:registered-by #14305,:metadata-hash "99db602879d4132141f204c2dfee9d1451ce154d82488b7301355d4a0ad99ce6",:title "Freedom",:id 743,:updated-at 1791066604199},750 {:timestamp 1791053318701,:user-id "cmusq9y2c00nipk1tzew8xcwc",:registered-by #14305,:metadata-hash "d8b677d8b1a299cb10a3795a74cc8fc34a3c02c161d0aedd6f90e0c06933e939",:title "More Than Ever",:id 750,:updated-at 1791129420890},742 {:timestamp 1790913127405,:user-id "cmopvtfvq001aps1udhrj7nvy",:registered-by #14305,:metadata-hash "3236490e53cb4bd35ac9fa647ba8af6b744a20c30c86aad05b91a9d9780bad53",:title "Got the Motion",:id 742,:updated-at 1791066602281},751 {:timestamp 1791053506741,:user-id "cmusq9y2c00nipk1tzew8xcwc",:registered-by #14305,:metadata-hash "3ecf541e35146efeb3cb2e613d883c43336a812bbbb54fa3a99b0616e9efd224",:title "Carolina Queen",:id 751,:updated-at 1791129422131},753 {:timestamp 1791053706188,:user-id "cmusq9y2c00nipk1tzew8xcwc",:registered-by #14305,:metadata-hash "56c3e98ba3d95ed92ca6f97d9f51aee8cd5ba58c0f01b71747831d3e253078af",:title "Oscar",:id 753,:updated-at 1791129421465}} | nil |
register | (fn [user-id metadata-hash title-hint] (do (#14369/require-operator) (let [id #14369/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 #14369/registry %3 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14369/ownership %0 (conj (cond (get #14369/ownership %0) *result* #{}) %3))) (fail :UNDECLARED ownership)) %4))) | nil |
require-operator | (fn [] (cond (not (= *caller* #14369/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 |
|---|