#0
nonstandard
0.00004000 BSV
Q!r+
Äræéé*>ùý)q;4¤Ñëõè?¹!Ò«ØWú¿)M¦È
tã}Æwb$º¥HÄxWynÂ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 this.profiles = [];\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 return \"success\";\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 return \"success\";\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 return \"success\";\n }\n\n addProfile(pubKeyProfilePair) {\n if (this.archived === true)\n return new Error(\"This Thread is already archived.\");\n this.profiles.push(pubKeyProfilePair);\n return \"success\";\n }\n}","__index":{"obj":0},"__args":[["029f06722b85c472e68813e918e92a0c8e3ef9fd29713b3484a4d1ebf50be83fb9","03d2abd85716fabf294da6c8851474e37dc6776224baa5487fc412781157796ec2"],"clack.chat","Ryan You Get This Yet?"],"__func":"constructor"}u
https://whatsonchain.com/tx/cbd93983715daaddcd41c100619a3bdbb6adf4472383646f944bf761cd98daee