#0
nonstandard
0.00004000 BSV
Q!}±æ âuà qð껦ãÖ:¤xÅѼÛVü!¤/¹bv3[©6÷.¢ç®DöüzºnSmA¥°}P΢R®M½{"__cls":"class Chat {\n constructor(publicKey, oc, title) {\n this.contractTypeID = \"5529c09a-1402-11eb-adc1-0242ac120002\";\n this.contractTypeName = \"Chat\";\n this.contractTypeVersion = \"0.0.1\";\n this.originalChannel = oc;\n this._owners = publicKey;\n this.title = title;\n this.messages = [];\n this.lastUpdated = null;\n this.canArchive = publicKey;\n this.archived = false;\n }\n\n post(pubKey, displayName, message, date) {\n if (this.archived === true)\n return new Error(\"This Thread is already archived.\");\n this.messages.push(`${pubKey}:${displayName}:${message}:${date}`);\n }\n\n invite(publicKey) {\n if (this.archived === true)\n return new Error(\"This Thread is already archived.\");\n this._owners.push(publicKey);\n }\n\n archive(pubKey) {\n if (!this.canArchive.includes(pubKey))\n return new Error(\"You do not have permission to archive this thread\");\n this.archived = true;\n }\n}","__index":{"obj":0},"__args":[["037db1e61c131d098ce275c382a071f0eabba6e3d63aa47814c508d1bcdb56fc9d","03a42fb96276335ba9881536f72ea281e7ae44f6fc7aba6e536d41a5b07d50cea2"],"clack.chat","Cool New Thread"],"__func":"constructor"}u
https://whatsonchain.com/tx/81cbe917e15fdd614d10af49ca29af50a9454d30c7589f7d92872a3b08cece9e