#0
nonstandard
0.00004000 BSV
Q!BímºðGÕ´¯HnÄ Ü8³6y.»<Ë»¢èÝQ®M9{"__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 this.employees = []\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\n addEmployee(id) {\n this.employees.push(id)\n }\n}","__index":{"obj":0},"__func":"constructor","__args":[["020f42ed6d12baf01647d5b481af03486ec409dc38b336792ebb3ccbbb16a2e8dd"],"First Name","Last Name","Email","Phone","020f42ed6d12baf01647d5b481af03486ec409dc38b336792ebb3ccbbb16a2e8dd",["020f42ed6d12baf01647d5b481af03486ec409dc38b336792ebb3ccbbb16a2e8dd"]]}u
https://whatsonchain.com/tx/3e1614866286f51d94b1e0d7c8adea8fb1f8358c36ba262fc60c76eefd881b81