#0
nonstandard
0.00004000 BSV
Q!¿2<T^³\!ð¯aIì?nÖÃícwÃÓ_Q®M{"__cls":"class InstitutionSC {\n constructor(\n admins = [],\n name = '',\n address = '',\n country = '',\n customerType = '',\n usPayIdType = '',\n defaultFund = false,\n isAgent = false\n ) {\n this.name = name;\n this.address = address;\n this.country = country;\n this.customerType = customerType;\n\n this.isAgent = isAgent;\n\n this._owners = admins;\n this.usPayIdType = usPayIdType;\n this.defaultFund = defaultFund;\n this.kycRequirements = [];\n this.dqList = [];\n this.funds = [];\n this.members = [];\n\n this.onboarded = [];\n this.processing = [];\n this.documents = [];\n this.admins = admins;\n this.contactPersonId = ''\n }\n\n addAdmin(publicKey, userId) {\n this._owners = [...new Set(this._owners.concat(publicKey))]\n this.admins = [...new Set(this.admins.concat(userId))]\n this.addMember(userId)\n }\n\n setContactPersonId(userId) {\n this.contactPersonId = userId\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 = [...new Set(this.members.concat(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 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.customerType = value;\n }\n\n setUsPayIdType(value) {\n this.usPayIdType = value;\n }\n\n addKycRequirement(req) {\n this.kycRequirements.push({ requirementName: req, added: new Date().toLocaleDateString() });\n }\n\n addToDqList(fund) {\n this.dqList.push(fund);\n }\n\n addOnboardedFund(fundId) {\n this.onboarded.push(fundId);\n\n const index = this.processing.indexOf(fundId);\n if (index > -1) {\n this.processing.splice(index, 1);\n }\n }\n\n addProcessingFund(fundId) {\n this.processing.push(fundId);\n }\n\n edit([name, address, country, customerType, usPayIdType, defaultFund]) {\n this.name = name;\n this.address = address;\n this.country = country; \n this.customerType = customerType;\n this.usPayIdType = usPayIdType;\n this.defaultFund = defaultFund;\n }\n}","__index":{"obj":0},"__func":"constructor","__args":[["03bf323c545eb35c918f21168d98f01daf6149ec3f6ed687c3ed1c637711c3d35f"],"asdf","asdf","asdf","asdf","",false,"false",[]]}u
https://whatsonchain.com/tx/441423f3535066a69cefe03342a3deb33c62a69afefa466ec234c8bac87e7fb4