#0
nonstandard
0.00004000 BSV
Q!HoZÇ]á´ïS´(
Ûá¹§0tÿ¦#t®Q®M£{"__func":"constructor","_args":[["02486f5a807f9299c71a5de1b4ef53b4280485dbe1b98916a73074ff8aa62374ae"],"First Name","Last Name","Email","Phone","02486f5a807f9299c71a5de1b4ef53b4280485dbe1b98916a73074ff8aa62374ae",["02486f5a807f9299c71a5de1b4ef53b4280485dbe1b98916a73074ff8aa62374ae"]],"__index":{"obj":0,"_amount":4000,"_owners":[{"x":"486f5a807f9299c71a5de1b4ef53b4280485dbe1b98916a73074ff8aa62374ae","y":"d0031c9a0a4b158e863584dbe66b72fb30d66a82190e08dacc97953f03c23f98","compressed":true}]},"__cls":"class InstitutionSC {\n constructor(admins, name, address, country, custType, usPayIdType, description) {\n this._owners = admins\n this.name = name\n this.address = address\n this.country = country\n this.customerType = custType\n this.usPayIdType = usPayIdType\n this.defaultFund = null\n this.funds = []\n this.teams = []\n this.description = description\n this.members = admins\n this.waitlistUsers = []\n this.funds = []\n }\n\n addAdmin(id) {\n if (this._owners.filter((x) => x === id).length !== 0 && typeof id !== 'undefined') {\n this._owners.push(id)\n }\n }\n\n removeAdmin(id) {\n const index = this._owners.indexOf(id)\n this._owners.splice(index, 1)\n }\n\n removeMember(id) {\n const index = this.members.indexOf(id)\n this.members.splice(index, 1)\n this.removeAdmin(id)\n }\n\n addMember(id) {\n this.members.push(id)\n }\n\n addFund(id) {\n this.funds.push(id)\n }\n\n removeFund(id) {\n const index = this.funds.indexOf(id)\n this.funds.splice(index, 1)\n if (this.defaultFund === id) {\n this.defaultFund = null\n }\n }\n\n addTeam(id) {\n this.teams.push(id)\n }\n\n removeTeam(id) {\n const index = this.teams.indexOf(id)\n this.teams.splice(index, 1)\n }\n\n setDefaultFund(id) {\n this.defaultFund = id\n }\n\n setName(value) {\n this.name = value\n }\n\n setAddress(value) {\n this.address = value\n }\n\n setCountry(value) {\n this.country = value\n }\n\n setCustomerType(value) {\n this.custType = value\n }\n\n setUsPayIdType(value) {\n this.usPayIdType = value\n }\n\n setDescription(value) {\n this.description = value\n }\n}"}u
https://whatsonchain.com/tx/8bec4eac3ff530bbb9153bd4ea498cad97688d5684917d07ba66acf75f2f2819