#0
nonstandard
0.00004000 BSV
Q!´ôî¼ò$4åmæMåЬ9úJs!ûº ²í£KQ®M{"kind":"script","__func":"constructor","_args":[["02b4f48a9aeebc95f2240b34e5036d84e64de5d0ac39fa4a7321fbba00b2eda34b"],"First Name","Last Name","Email","Phone",["02b4f48a9aeebc95f2240b34e5036d84e64de5d0ac39fa4a7321fbba00b2eda34b"]],"__index":{"obj":0},"__cls":"class UserSC {\n constructor(publicKey, firstName, lastName, email, phone, adminKeys = [], institution = null) {\n this._owners = publicKey\n this.firstName = firstName\n this.lastName = lastName\n this.teams = []\n this.funds = []\n this.trades = []\n this.adminKeys = adminKeys\n this.institution = institution\n this.publicKey = publicKey\n this.email = email\n this.phone = phone\n }\n\n addTeam(id) {\n this.teams.push(id)\n }\n\n addFund(id) {\n this.funds.push(id)\n }\n\n addTrade(id) {\n this.trades.push(id)\n }\n\n removeOwner(id) {\n let index = this._owners.indexOf(id)\n this._owners = this._owners.splice(index, 1)\n index = this.adminKeys.indexOf(id)\n this.adminKeys = this.adminKeys.splice(index, 1)\n }\n\n addOwner(id) {\n this._owners.push(id)\n }\n\n addAdmin(id) {\n this._owners.push(id)\n this.adminKeys.push(id)\n }\n\n editFirstName(value) {\n this.firstName = value\n }\n\n editLastName(value) {\n this.lastName = value\n }\n\n editIsAdmin(value) {\n this.isAdmin = value\n }\n\n editInstitution(value) {\n this.institution = value\n }\n\n editPublicKey(value) {\n this.publicKey = value\n }\n\n editBlockchainAddress(value) {\n this.blockchainAddress = value\n }\n\n editEmail(value) {\n this.email = value\n }\n\n editPhone(value) {\n this.phone = value\n }\n}"}u
https://whatsonchain.com/tx/d471e33dcbcb9b02b1509d2e746df3f136eff7e3ed4f6cc569e6bb71ef27d843