#0
nonstandard
0.00004000 BSV
Q!þd¼Ð[i©ÒA9q¤Öw;A¶&:Rhlf.aÛôQ®MÚ{"summary":1,"details":2,"__cls":"class FundSC {\n constructor(\n owners = [],\n fundName = '',\n shortName = '',\n addressLine = '',\n country = '',\n contactInformation = '',\n institutionId = '',\n customerType = '',\n usPayIdType = '',\n abaNumber = '',\n investmentVehicle = '',\n entityType = '',\n fxType = '',\n amlRequired = false,\n costingMethod = '',\n defaultFund = false,\n reserveCalculationRequired = false,\n revalRequired = false,\n revaluationMethod = '',\n revaluationStartMonth = '',\n dateFunded = '',\n adminId = '',\n trusteeId = '',\n complianceId = ''\n ) {\n this._owners = owners;\n\n this.summary = {\n _owners: owners,\n fundName,\n shortName,\n addressLine,\n country,\n contactInformation,\n institutionId,\n };\n\n this.details = {\n _owners: owners,\n customerType,\n usPayIdType,\n abaNumber,\n investmentVehicle,\n entityType,\n fxType,\n amlRequired,\n costingMethod,\n defaultFund,\n reserveCalculationRequired,\n revalRequired,\n revaluationMethod,\n revaluationStartMonth,\n dateFunded,\n };\n\n this.adminId = adminId;\n this.trusteeId = trusteeId;\n this.complianceId = complianceId;\n\n this.documents = [];\n this.members = [];\n\n this.admins = [];\n this.contactPersonId = '';\n\n this.kycDocs = [];\n this.onboarded = [];\n this.processing = [];\n this.files = [];\n this.affiliation = '';\n }\n\n setupFund(user, institution, affiliation, owners) {\n this.addAdmin(user._id, user.publicKey);\n this.addOwners(owners);\n this.setContactPersonId(user._id);\n this.affiliation = affiliation;\n user.funds = [...new Set(user.funds.concat(this._id))]\n institution.funds = [...new Set(institution.funds.concat(this._id))]\n if (institution.affiliation === '') {\n institution.affiliation = affiliation;\n }\n }\n\n addAdmin(id, publicKey) {\n this.admins = [...new Set(this.admins.concat(id))];\n this._owners = [...new Set(this._owners.concat(publicKey))];\n this.summary._owners = [...new Set(this.summary._owners.concat(publicKey))];\n this.details._owners = [...new Set(this.details._owners.concat(publicKey))];\n this.addMember(id);\n }\n\n setContactPersonId(id) {\n this.contactPersonId = id;\n }\n\n addOwners(publicKeys) {\n this._owners = [...new Set(this._owners.concat(publicKeys))];\n this.details._owners = [...new Set(this.details._owners.concat(publicKeys))];\n this.summary._owners = [...new Set(this.summary._owners.concat(publicKeys))];\n }\n\n setInstId(institutionId) {\n this.summary.institutionId = institutionId;\n }\n\n addMember(memberId) {\n this.members = [...new Set(this.members.concat(memberId))];\n }\n\n setAffiliation(affiliationId) {\n this.affiliation = affiliationId;\n }\n\n edit(\n fundName,\n shortName,\n addressLine,\n country,\n contactInformation,\n customerType,\n usPayIdType,\n abaNumber,\n investmentVehicle,\n entityType,\n fxType,\n amlRequired,\n costingMethod,\n defaultFund,\n revalRequired,\n revaluationMethod,\n reserveCalculationRequired,\n revaluationStartMonth,\n dateFunded,\n adminId,\n trusteeId,\n complianceId\n ) {\n this.summary.fundName = fundName;\n this.summary.shortName = shortName;\n this.summary.addressLine = addressLine;\n this.summary.country = country;\n this.summary.contactInformation = contactInformation;\n this.details.customerType = customerType;\n this.details.usPayIdType = usPayIdType;\n this.details.abaNumber = abaNumber;\n this.details.investmentVehicle = investmentVehicle;\n this.details.entityType = entityType;\n this.details.fxType = fxType;\n this.details.amlRequired = amlRequired;\n this.details.costingMethod = costingMethod;\n this.details.defaultFund = defaultFund;\n this.details.revalRequired = revalRequired;\n this.details.revaluationMethod = revaluationMethod;\n this.details.reserveCalculationRequired = reserveCalculationRequired;\n this.details.revaluationStartMonth = revaluationStartMonth;\n this.details.dateFunded = dateFunded;\n this.adminId = adminId;\n this.trusteeId = trusteeId;\n this.complianceId = complianceId;\n }\n}","__index":{"obj":0},"__func":"constructor","__args":[["02fe64bcd05b69a9d2413971a491d6779e3b41b6263a5268166c11662e61dbf408"],"Fund Name"]}u
https://whatsonchain.com/tx/6aaa562a3291a1afebc57e81bf150d965aa0b42e91f2b61ec6ad983ca6187311