#0
nonstandard
0.00004000 BSV
Q!*(DR~!¾¥
µdÒûÏÍW*ÑjX/E8,h9cÉ`Q®Mb{"__cls":"class AffiliationSC {\n constructor(\n owners = [],\n facilities = []\n ) {\n this._owners = owners;\n this.facilities = facilities;\n }\n\n addFund(facilityId, fundId, dateAffiliated, affiliationLetterId) {\n const facility = this.facilities.find(f => f[0] === facilityId)\n\n if (facility) {\n const fundsList = facility[1];\n if (!fundsList.find(f => f[0] === fundId)) {\n fundsList.push([fundId, dateAffiliated, affiliationLetterId]);\n }\n } else {\n this.facilities.push([facilityId, [[fundId, dateAffiliated, affiliationLetterId]]]);\n }\n }\n\n addOwner(publicKey) {\n if (!this._owners.includes(publicKey)) {\n this._owners.push(publicKey);\n }\n }\n}","__index":{"obj":0},"__func":"constructor","__args":[["032a2844527e21bea59b0db564d2fbcf9bcd89572ad16a582f45382c683963c960"]]}u
https://whatsonchain.com/tx/74f4fd5de9b8abf6cc1f5e425978f0cf7988c4e9a96afd963ed562facc99232c