#0
nonstandard
0.00004000 BSV
Q!2níÕ
ÃãêhÊ1G%é R¸tÉÓEÑmãÿ²Á!uvµ¢U8´ÑÀ<ç@uþ°Ãy\. ºB1¢»æ!Ô*@zȳëOÜá;¿[iØ#ß@Òc(S®MÙ"{"state_0":1,"state_1":4,"state_2":8,"state_3":11,"state_4":13,"details":15,"settlementInfo":16,"keyDates":17,"fees":18,"status":19,"roles":20,"kycRequirements":21,"__cls":"class SubTradeSC {\n constructor(\n owners = [],\n fundFromId,\n fundToId,\n batchOrderId,\n subBatchOrderId,\n positionId,\n positionSellingAmount,\n chatId,\n\n // ======================================\n\n facilityId = '',\n facilityType = '',\n price = 0,\n amountOfTrade = 0,\n discountAmount = 0,\n dealId = '',\n buySellIndicator = '',\n investmentType = 'Assignment',\n parDistressedIndicator = '',\n agentId = '',\n grossSettleNetIndicator = false,\n totalPreCloseTradeAmount = 0,\n totalClosingTradeAmount = 0,\n tradeType = 'Primary',\n tradeAssociation = '',\n primarySpecification = '',\n documentationType = '',\n fundingMemoAdvice = false,\n currency = 'USD',\n finalRate = 0,\n margin = 0,\n CUSIP = 0,\n ISIN = 0,\n tranche = '',\n baseRate = 0,\n transferAtHistoricRate = false,\n historicRate = 0,\n affiliation = false,\n cashlessRoll = false,\n actualAmount = 0,\n costOfCreditValuation = 0,\n costingMethod = 'WAC',\n tradeDate = '',\n tradeBookingDate = '',\n repricingDate = '',\n legalTradeDate = '',\n delayedCompEndDate = '',\n expectedSettlementDate = '',\n assignmentFees = false,\n assignmentFeeAmount = 0,\n assignmentFeeType = '',\n accrualSettlementType = '',\n delayedComp = '',\n delayedCompDetails = '',\n amendmentFee = 0,\n costOfFund = 0,\n costOfCarry = 0,\n brokerageFeeType = '',\n brokerageFeeAmount = 0,\n brokerageRate = 0,\n brokerFeeWaiving = 0,\n internalCommission = 0,\n brokerId = '',\n SECFees = 0,\n MISCFees = 0,\n assignmentRecordationBuyer = 0,\n assignmentRecordationSeller = 0,\n upfrontFee = 0,\n adhocBuyerFee = 0,\n adhocSellerFee = 0,\n settlementStatus = '',\n settlementTime = '',\n tradeStatus = '',\n settlementInstructions = '',\n dependency = '',\n buyer,\n seller,\n agent,\n trustee,\n compliance,\n kycRequirements,\n // =========================================================================\n // State machine\n // =========================================================================\n state = [\n {\n id: 0,\n title: 'Trade Approval',\n type: 'approval',\n message: 'Please approve the trade terms',\n roles: [\n { role: 'buyer', complete: false },\n { role: 'seller', complete: false },\n // { role: 'trustee', complete: false },\n ],\n },\n {\n id: 1,\n title: 'Approve A&A',\n type: 'approval',\n message: 'Please approve the A&A terms ... todo: change text',\n roles: [\n { role: 'buyer', complete: false },\n { role: 'seller', complete: false },\n { role: 'agent', complete: false },\n ],\n },\n {\n id: 2,\n title: 'Approve LSTA',\n type: 'approval',\n message: 'Please approve the LSTA terms ... todo: change text',\n roles: [\n { role: 'buyer', complete: false },\n { role: 'seller', complete: false },\n ],\n },\n {\n id: 3,\n title: 'Transfer Position',\n type: 'approval',\n message: 'Please approve the position transfer ... todo: change text',\n roles: [{ role: 'seller', complete: false }],\n },\n {\n id: 4,\n title: 'Finalize Trade',\n type: 'approval',\n message: 'Please approve the trade to be finalized ... todo: change text',\n roles: [{ role: 'agent', complete: false }],\n },\n ],\n stateChecksum = 0\n // =========================================================================\n ) {\n this._owners = owners;\n this.fundFromId = fundFromId;\n this.fundToId = fundToId;\n this.batchOrderId = batchOrderId;\n this.subBatchOrderId = subBatchOrderId;\n this.positionId = positionId;\n this.positionSellingPercentage = positionSellingAmount;\n this.chatId = chatId;\n\n // ====================================================\n this.state = state;\n this.stateChecksum = stateChecksum;\n // ====================================================\n\n this.finalized = false;\n this.stateMachineSteps = 0;\n\n this.details = {\n facilityId,\n facilityType,\n price,\n amountOfTrade,\n discountAmount,\n dealId,\n buySellIndicator,\n investmentType,\n parDistressedIndicator,\n agentId,\n grossSettleNetIndicator,\n totalPreCloseTradeAmount,\n totalClosingTradeAmount,\n tradeType,\n tradeAssociation,\n primarySpecification,\n documentationType,\n };\n\n this.settlementInfo = {\n fundingMemoAdvice,\n currency,\n finalRate,\n margin,\n CUSIP,\n ISIN,\n tranche,\n baseRate,\n transferAtHistoricRate,\n historicRate,\n affiliation,\n affiliateFund: '',\n cashlessRoll,\n actualAmount,\n costOfCreditValuation,\n costingMethod,\n };\n\n this.keyDates = {\n tradeDate,\n tradeBookingDate,\n repricingDate,\n legalTradeDate,\n delayedCompEndDate,\n expectedSettlementDate,\n };\n\n this.fees = {\n assignmentFees,\n assignmentFeeAmount,\n assignmentFeeType,\n accrualSettlementType,\n delayedComp,\n delayedCompDetails,\n amendmentFee,\n costOfFund,\n costOfCarry,\n brokerageFeeType,\n brokerageFeeAmount,\n brokerageRate,\n brokerFeeWaiving,\n internalCommission,\n brokerId,\n SECFees,\n MISCFees,\n assignmentRecordationBuyer,\n assignmentRecordationSeller,\n upfrontFee,\n adhocBuyerFee,\n adhocSellerFee,\n };\n\n this.status = {\n settlementStatus,\n settlementTime,\n tradeStatus,\n settlementInstructions,\n dependency,\n dependencyOrderId: '',\n };\n\n this.roles = {\n buyer,\n seller,\n agent,\n trustee,\n compliance,\n };\n this.kycRequirements = kycRequirements;\n }\n\n setPositionSellingAmount(newPositionSellingPercentage) {\n this.positionSellingPercentage = newPositionSellingPercentage;\n }\n\n // position to be sold\n setPosition(positionId) {\n this.positionId = positionId;\n }\n\n addOwner(pubKey) {\n this._owners.push(pubKey);\n }\n\n setChatId(chatId) {\n this.chatId = chatId;\n }\n\n updateState(step, role, data) {\n const changedStep = this.state.find(s => s.id === step.id);\n if (!changedStep) throw new Error(`Step doesnt exist.`);\n\n const roleAction = changedStep.roles.find(r => r.role === role);\n if (!roleAction) throw new Error(`Role ${role} does not need to act on this step.`);\n\n // TODO: set data for complex step types\n roleAction.complete = true;\n this.stateChecksum = this.stateChecksum + 1;\n }\n}","__index":{"obj":0},"__func":"constructor","__args":[["03326eedd58286920ac3e3ea68ca314725e92052b8748bc9d345d16de3ff96b2c1","037576b5a255381ab4d1c03ce7409c75feb0c3795c2e00adba04144231a2bbe602","02d42a11407a10c81db3eb154f8edce18f3b8790bf5b69d82391df40d206816328"],"6ac99dc1ff49fde85cb6fa7dfb8e1d83899ac448f8abaf384af3d32260fed325:0","e0931e31731fc605ddaa413a5c746ac8b598517276cdad082c48af6a5e70d4c9:0","61ead46c74d6fd7d1440af039fcc58aaf2388377460ef4603c6709342496b649:0","248bcba9da6c2813c7aa787dff7517408cdaba90e6271a2bc2cffdadb2b9ba67:0","6a6833ef7e96cf2618166843f5708c9569f15b529faccad195ff9dc3a4d4b53f:0",777,"","533758c171e91c316ba7aed6fbd8df0639c06602c5ce897f3b8881f00ae7db30:0","facility2",0,0,0,"309d0390828f3ad1bb964bc716d432de012c9139e70813b797bf1d1e860a3398:0","buy","Assignment","par","4bfabfbf7a91b33d5dd0420968d2b483dc3c54e2f701fe6c4b27562a24852b9f:0","true",0,0,"Primary","Trade Association","Primary Specification","Documentation Type","true","USD",0,0,0,0,"Tranche",0,"true",0,"true","true",0,0,"WAC","12/27/2020","01/01/2021","01/03/2021","01/16/2021","01/17/2021","01/28/2021","true",0,"Assignment Fee Type","Accrual Settlement Type","Delayed Comp","01/18/2021",0,0,0,"Brokerage Fee Type",0,0,0,0,"4bfabfbf7a91b33d5dd0420968d2b483dc3c54e2f701fe6c4b27562a24852b9f:0",0,0,0,0,0,0,0,"Settlement Status","01/13/2021","Trade Status","Settlement Instructions","Dependency","96fee85399eb15448f0ba8a43fa3e863fa5d959c95b879bcd640533af66b4b39:0","4bfabfbf7a91b33d5dd0420968d2b483dc3c54e2f701fe6c4b27562a24852b9f:0","6a6562f575de36a0f85359feff48f5532441f1966c2d2ac7dfd6f06dc8b27818:0","47b788ac35c30d620dc26d40ca8c73e9c06e861ce76121621301070a88bc5468:0","85d93492cd93e747aae235cacf821d374dec8e1b3835d5dd0fd43ab227fb3cb4:0",{}]}u
https://whatsonchain.com/tx/c722253152aee8c00b192d06b40b6164b4f2aa9340e556b1f27e0fa6f7f36699