#0
nonstandard
0.00004000 BSV
Q!¾
h!o¼4öVAsÔ${Ð7a·$À¡Z³HÜTbQ®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, 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":[["02be8568216f89bc34f61356134173d424827bd03761b78924c0a15ab348dc5462"],"test","test","test","CHN","test","652f7d64b238a51771d694b8238ff35fbb36d8d3a648077d41bba098cc705c46:0","test","FPML","test","US-Based Entity","LLC","GBP",false,"LIFO",false,false,false,"","",1616194051,"520a263ed02a6a1014cf26f94e37460c284310c5e060417ab043dab5ccf7c626:0","520a263ed02a6a1014cf26f94e37460c284310c5e060417ab043dab5ccf7c626:0","520a263ed02a6a1014cf26f94e37460c284310c5e060417ab043dab5ccf7c626:0"]}u
https://whatsonchain.com/tx/fd51e6cbdaee432a7f60f85ac697e8d71aa9f472a4d17fe628028dd312b43096