Q!v¢òxby_Ïà7
:Ôp»ÊøVÝ]5Äqh/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(userId, userPublicKey, institution, affiliationId, owner) {\n this.addAdmin(userId, userPublicKey);\n this.addOwners([owner]);\n this.setContactPersonId(userId);\n this.affiliation = affiliationId;\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, affiliation = '') {\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 // if (affiliation !== '') {\n // affiliation._owners = [...new Set(affiliation._owners.concat(publicKey))];\n // }\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":[["0376a2f27862795fcfe0370d3a031dd4877002bb86ca8b10f856dd5d35c471682f"],"test","test","test","AUS","test","3e5bae5c1699d20e84fe8a35edbf2222f45d06a606d2451753e2f48f534fab39:0","test","FPML","test","Offshore","","GBP",false,"FIFO",false,false,false,"","",1616191872,"453ae5472840bd29cd805d20369f2325ef2c7f98ee4b6f72d7090b0374ccbaa1:0","453ae5472840bd29cd805d20369f2325ef2c7f98ee4b6f72d7090b0374ccbaa1:0","453ae5472840bd29cd805d20369f2325ef2c7f98ee4b6f72d7090b0374ccbaa1:0"]}u
https://whatsonchain.com/tx/undefined