Account #14368
| 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 [] #14368/operator) | nil |
update-cert | (fn [id new-metadata-hash new-title] (do (#14368/require-operator) (let [cert (get #14368/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 #14368/registry %0 %4)) (fail :UNDECLARED registry)) %4)))) | nil |
owned-by | (fn [user-id] (cond (get #14368/ownership %0) *result* #{})) | nil |
init-next-id | (fn [start-id] (do (#14368/require-operator) (cond (lookup-meta *address* next-id) (def next-id %0) (fail :UNDECLARED next-id)) %0)) | nil |
next-id | 742 | nil |
ownership | {"cmuox88q30039py1s4ucs31w6" #{739,733,741,736,731,738,737,734,735,740,732},"cmup9x8tb0066py1svb363a5y" #{728,729,730}} | nil |
total-issued | (fn [] (dec #14368/next-id)) | nil |
lookup | (fn [id] (get #14368/registry %0)) | nil |
transfer-cert | (fn [id new-user-id] (do (#14368/require-operator) (let [cert (get #14368/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 #14368/registry %0 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14368/ownership %3 (disj (get #14368/ownership %3) %0))) (fail :UNDECLARED ownership)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14368/ownership %1 (conj (cond (get #14368/ownership %1) *result* #{}) %0))) (fail :UNDECLARED ownership)) %4)))) | nil |
set-operator | (fn [new-operator] (do (cond (not (= *caller* #14368/operator)) (fail :UNAUTHORIZED "Only governance can change the operator") nil) (cond (lookup-meta *address* operator) (def operator %0) (fail :UNDECLARED operator)) %0)) | nil |
registry | {739 {:timestamp 1790851479779,:user-id "cmuox88q30039py1s4ucs31w6",:registered-by #14305,:metadata-hash "2c21b47cd71d9d719432faa669375585962cd2404edc716a674ed6fa1f2c443e",:title "Like Back in the Day",:id 739,:updated-at 1790875620941},733 {:timestamp 1790850794397,:user-id "cmuox88q30039py1s4ucs31w6",:registered-by #14305,:metadata-hash "166cd4593590b33c4c7a4a75c8b5ef895c7bc21699c6a33680677b394d883d6f",:title "Youre So Good",:id 733,:updated-at 1790874913660},728 {:timestamp 1790847958936,:user-id "cmup9x8tb0066py1svb363a5y",:registered-by #14305,:metadata-hash "ef5210c30cb65cf3cd74fbc44d1b17d30224f4094106e1b3672e2a8a636174a0",:title "Younghillery Trip On Me (Feat. TraedaKidd)",:id 728,:updated-at 1790874773576},741 {:timestamp 1790852083983,:user-id "cmuox88q30039py1s4ucs31w6",:registered-by #14305,:metadata-hash "838ce2a1a811cd65271e5003b158258e0dde1430efae37165946cafed6864e9c",:title "calling you-prison song",:id 741,:updated-at 1790875622339},736 {:timestamp 1790851154575,:user-id "cmuox88q30039py1s4ucs31w6",:registered-by #14305,:metadata-hash "ccb4c759e8a19f5ebd3b6f558fb4ce42b10e51c747c8491aae515965d3a43cb5",:title "Made up my Mind",:id 736,:updated-at 1790874915388},731 {:timestamp 1790850607099,:user-id "cmuox88q30039py1s4ucs31w6",:registered-by #14305,:metadata-hash "99db50b0b3671739d605995bfc363289f036ce2246bba53313677aef2436fcd0",:title "Quit looking over the real thing",:id 731,:updated-at 1790874912512},738 {:timestamp 1790851405603,:user-id "cmuox88q30039py1s4ucs31w6",:registered-by #14305,:metadata-hash "3decf6404d85170bda412da2c9dded5cd7cc463d2842867074cb37b1edf6fb83",:title "I got you",:id 738,:updated-at 1790875619963},737 {:timestamp 1790851311100,:user-id "cmuox88q30039py1s4ucs31w6",:registered-by #14305,:metadata-hash "002cebf12af9646c135975ac8871727f1ffec35b8a18facc8f969f63bab04742",:title "Love Took A Break",:id 737,:updated-at 1790874915964},734 {:timestamp 1790850982909,:user-id "cmuox88q30039py1s4ucs31w6",:registered-by #14305,:metadata-hash "fca0c368e8d43da2c742e91e22c89f57cb7eeaf042ba2db743b1de0304b32e48",:title "Goodbye Farewell",:id 734,:updated-at 1790874914267},735 {:timestamp 1790851073404,:user-id "cmuox88q30039py1s4ucs31w6",:registered-by #14305,:metadata-hash "d8072389a3830cd44cac962ecd7e80ac10d4dd14dba189578c4f4fa50c409889",:title "Easy to see",:id 735,:updated-at 1790874914812},740 {:timestamp 1790851870383,:user-id "cmuox88q30039py1s4ucs31w6",:registered-by #14305,:metadata-hash "ad1a685c64c8c825d35905fc35337053ea3bf7804e6c30d4b1f4422bcfb0947e",:title "You can't help it",:id 740,:updated-at 1790875621607},732 {:timestamp 1790850730287,:user-id "cmuox88q30039py1s4ucs31w6",:registered-by #14305,:metadata-hash "ae2be1f096e71dbb571a70b13651376c26c32498b5f82c3c4ca1e78038f8b1ad",:title "Mellow Confessions",:id 732,:updated-at 1790874913086},729 {:timestamp 1790848252123,:user-id "cmup9x8tb0066py1svb363a5y",:registered-by #14305,:metadata-hash "289006f27d8716f5f21c8675fe345fb25e6d0b98d14d9eea3a112762ad4e438d",:title "Younghillery - Heaven",:id 729,:updated-at 1790874775393},730 {:timestamp 1790848604898,:user-id "cmup9x8tb0066py1svb363a5y",:registered-by #14305,:metadata-hash "999771bd995a92561b52d95a055ab74703d7b1c72af2283db313cb4336aa4701",:title "Younghillery - By My Side Ft Jazzie Marie",:id 730,:updated-at 1790874916548}} | nil |
register | (fn [user-id metadata-hash title-hint] (do (#14368/require-operator) (let [id #14368/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 #14368/registry %3 %4)) (fail :UNDECLARED registry)) (cond (lookup-meta *address* ownership) (def ownership (assoc #14368/ownership %0 (conj (cond (get #14368/ownership %0) *result* #{}) %3))) (fail :UNDECLARED ownership)) %4))) | nil |
require-operator | (fn [] (cond (not (= *caller* #14368/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 |
|---|