#0
nonstandard
0.00004000 BSV
Q!Ò«ØWú¿)M¦È
tã}Æwb$º¥HÄxWynÂQ®M{"__cls":"class UserProfile {\n constructor(\n pubKey,\n oc,\n displayName,\n website,\n bio,\n image,\n jobTitle,\n company,\n companyUrl\n ) {\n this.contractTypeID = \"964001a2-140c-11eb-adc1-0242ac120002\";\n this.contractTypeName = \"UserProfile\";\n this.contractTypeVersion = \"0.0.1\";\n this.originalChannel = oc;\n this._owners = [pubKey];\n this.manager = pubKey;\n this.displayName = displayName;\n this.website = website;\n this.bio = bio;\n this.image = image;\n this.jobTitle = jobTitle;\n this.company = company;\n this.companyUrl = companyUrl;\n }\n\n setDisplayName(name) {\n this.displayName = name;\n }\n\n setWebsite(website) {\n this.website = website;\n }\n\n setBio(bioAsMarkdown) {\n this.bio = bioAsMarkdown;\n }\n\n setImage(imageUrl) {\n this.image = imageUrl;\n }\n\n setJobTitle(jobTitle) {\n this.jobTitle = jobTitle;\n }\n\n setCompany(companyName) {\n this.company = companyName;\n }\n\n setCompanyUrl(companyUrl) {\n this.companyUrl = companyUrl;\n }\n\n shareWith(pubKey) {\n //how do I get the public key of the user making the request?\n //if the user is not the manager, I do not want to allow the user to make a change here\n //even if they are the owner.\n this._owners.push(pubKey);\n }\n\n removeShare(pubKey) {\n let _temp = this._owners;\n let index = _temp.indexOf(pubKey);\n if (index === -1) {\n throw new Error(\"The key does not exist in the shared list\");\n }\n _temp.splice(index, 1);\n this._owners = _temp;\n }\n}","__index":{"obj":0},"__args":["03d2abd85716fabf294da6c8851474e37dc6776224baa5487fc412781157796ec2","clack.chat","Ryan","www.test.com",":)\n**I'm a cool guy **\n### This should be bigger than everything else\n","https://miro.medium.com/max/1590/0*xvemS5LQoH9ZXd5u.jpg","avc","abs",""],"__func":"constructor"}u
https://whatsonchain.com/tx/2fa4927b82fbfea5f42d799ff1f9655c8c9fa0f830be4bf71c68df5706083bf6