#0
nonstandard
0.00004000 BSV
Q!$hÿzúú½wT¢F«ýétÐÇÈñÖÿ¸èwåQ®M²{"__cls":"class BasicVoteable{\n constructor(publicKey, name, description){\n this._owners = [publicKey]\n this.name = name\n this.voters = [publicKey]\n this.description = description \n this.votes = []\n }\n addVoter(pubKey){\n \n }\n vote(publicKey, vote){\n let voteIndex = -1\n let spliced = null \n this.votes.forEach(v => {\n if(v.includes(publicKey)){\n voteIndex = this.votes.indexOf(v)\n if (voteIndex > -1) {\n spliced = this.votes.splice(voteIndex, 1);\n }\n }\n })\n if(spliced){\n this.votes = spliced\n }\n this.votes.push(vote)\n }\n}","__index":{"obj":0},"__func":"constructor","__args":["031c2468ff0e1c7afafa1fbd7754a246abfde90f74d0c7c89ff1d6ffb898e877e5","Proposal Name","A Cool Description of an awesome proposal",{}]}u
https://whatsonchain.com/tx/8ab07875dd690c278fba8a2f2cd5158c6ba4a146338432e11bbffafbfc01a059