#0
nonstandard
0.00004000 BSV
Q!PÐcßà2 ³î)¥äá´å«ruÒÌÁLïRdaB!¦HÈß Ãå
AJP6¬>Q«C|«
Lݤ°òs¡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(messageAsJson) {\n if (this.archived === true)\n return new Error(\"This Thread is already archived.\");\n this.messages.push(messageAsJson);\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":[["035002d063dfe032a0b3ee29a5e4e1b404e587ab7275d2ccc14cef52646142171f","02a648c88ddf09c3e585414a5036ac3e51ab93437cab0d4c8cdda4b0f217730ca1"],"clack.chat","WTF?"],"__func":"constructor"}u
https://whatsonchain.com/tx/cbb4826f4ce4eaf27b5d2bb2093ac28ff76ec2b41273cc816578949c5a0bc6b2