@mojaloop/central-ledger 17.7.8 → 17.8.0-orb.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/.ncurc.yaml +3 -1
  2. package/.nvmrc +1 -1
  3. package/.nycrc.yml +16 -1
  4. package/Dockerfile +9 -10
  5. package/README.md +39 -9
  6. package/audit-ci.jsonc +15 -2
  7. package/config/default.json +17 -1
  8. package/docker/central-ledger/default.json +9 -0
  9. package/docker/config-modifier/configs/central-ledger.js +25 -0
  10. package/docker/env.sh +15 -0
  11. package/docker/kafka/scripts/provision.sh +4 -1
  12. package/docker/ml-api-adapter/default.json +4 -1
  13. package/docker-compose.yml +90 -2
  14. package/documentation/db/erd-transfer-timeout.png +0 -0
  15. package/documentation/db/erd-transfer-timeout.txt +81 -0
  16. package/documentation/fx-implementation/README.md +48 -0
  17. package/documentation/fx-implementation/assets/fx-position-movements.drawio.svg +4 -0
  18. package/documentation/fx-implementation/assets/test-scenario.drawio.svg +4 -0
  19. package/documentation/sequence-diagrams/Handler - FX timeout.plantuml +123 -0
  20. package/documentation/sequence-diagrams/Handler - FX timeout.png +0 -0
  21. package/documentation/sequence-diagrams/Handler - timeout.plantuml +81 -0
  22. package/documentation/sequence-diagrams/Handler - timeout.png +0 -0
  23. package/documentation/state-diagrams/transfer-ML-spec-states-diagram.png +0 -0
  24. package/documentation/state-diagrams/transfer-internal-states-diagram.png +0 -0
  25. package/documentation/state-diagrams/transfer-internal-states.plantuml +75 -0
  26. package/documentation/state-diagrams/transfer-states.plantuml +13 -0
  27. package/migrations/310204_transferParticipant-participantId.js +52 -0
  28. package/migrations/310403_participantPositionChange-participantCurrencyId.js +47 -0
  29. package/migrations/310404_participantPositionChange-change.js +46 -0
  30. package/migrations/600010_fxTransferType.js +43 -0
  31. package/migrations/600011_fxTransferType-indexes.js +38 -0
  32. package/migrations/600012_fxParticipantCurrencyType.js +43 -0
  33. package/migrations/600013_fxParticipantCurrencyType-indexes.js +38 -0
  34. package/migrations/600100_fxTransferDuplicateCheck.js +42 -0
  35. package/migrations/600110_fxTransferErrorDuplicateCheck.js.js +17 -0
  36. package/migrations/600200_fxTransfer.js +51 -0
  37. package/migrations/600201_fxTransfer-indexes.js +40 -0
  38. package/migrations/600400_fxTransferStateChange.js +46 -0
  39. package/migrations/600401_fxTransferStateChange-indexes.js +40 -0
  40. package/migrations/600501_fxWatchList.js +46 -0
  41. package/migrations/600502_fxWatchList-indexes.js +40 -0
  42. package/migrations/600600_fxTransferFulfilmentDuplicateCheck.js +43 -0
  43. package/migrations/600601_fxTransferFulfilmentDuplicateCheck-indexes.js +38 -0
  44. package/migrations/600700_fxTransferFulfilment.js +47 -0
  45. package/migrations/600701_fxTransferFulfilment-indexes.js +43 -0
  46. package/migrations/600800_fxTransferExtension.js +47 -0
  47. package/migrations/601400_fxTransferTimeout.js +43 -0
  48. package/migrations/601401_fxTransferTimeout-indexes.js +37 -0
  49. package/migrations/601500_fxTransferError.js +44 -0
  50. package/migrations/601501_fxTransferError-indexes.js +37 -0
  51. package/migrations/610200_fxTransferParticipant.js +52 -0
  52. package/migrations/610201_fxTransferParticipant-indexes.js +44 -0
  53. package/migrations/610202_fxTransferParticipant-participantId.js +52 -0
  54. package/migrations/610403_participantPositionChange-fxTransfer.js +46 -0
  55. package/migrations/910101_feature904DataMigration.js +46 -52
  56. package/migrations/910102_feature949DataMigration.js +219 -225
  57. package/migrations/950104_settlementModel-settlementAccountTypeId.js +15 -20
  58. package/migrations/950108_participantProxy.js +18 -0
  59. package/migrations/950109_fxQuote.js +19 -0
  60. package/migrations/950110_fxQuoteResponse.js +25 -0
  61. package/migrations/950111_fxQuoteError.js +23 -0
  62. package/migrations/950113_fxQuoteDuplicateCheck.js +18 -0
  63. package/migrations/950114_fxQuoteResponseDuplicateCheck.js +21 -0
  64. package/migrations/950115_fxQuoteConversionTerms.js +36 -0
  65. package/migrations/950116_fxQuoteConversionTermsExtension.js +21 -0
  66. package/migrations/950117_fxQuoteResponseConversionTerms.js +39 -0
  67. package/migrations/950118_fxQuoteResponseConversionTermsExtension.js +21 -0
  68. package/migrations/950119_fxCharge.js +27 -0
  69. package/migrations/960100_create_externalParticipant.js +47 -0
  70. package/migrations/960110_alter_transferParticipant__addFiled_externalParticipantId.js +50 -0
  71. package/migrations/960111_alter_fxTransferParticipant__addFiled_externalParticipantId.js +50 -0
  72. package/package.json +27 -20
  73. package/seeds/endpointType.js +18 -0
  74. package/seeds/fxParticipantCurrencyType.js +45 -0
  75. package/seeds/fxTransferType.js +45 -0
  76. package/seeds/participant.js +2 -1
  77. package/seeds/transferParticipantRoleType.js +9 -0
  78. package/seeds/transferState.js +10 -0
  79. package/src/api/interface/swagger.json +23 -30
  80. package/src/api/participants/handler.js +6 -2
  81. package/src/api/participants/routes.js +8 -7
  82. package/src/api/root/handler.js +15 -5
  83. package/src/domain/fx/cyril.js +466 -0
  84. package/src/domain/fx/index.js +107 -0
  85. package/src/domain/participant/index.js +108 -1
  86. package/src/domain/position/abort.js +215 -0
  87. package/src/domain/position/binProcessor.js +361 -99
  88. package/src/domain/position/fulfil.js +252 -111
  89. package/src/domain/position/fx-fulfil.js +138 -0
  90. package/src/domain/position/fx-prepare.js +280 -0
  91. package/src/domain/position/fx-timeout-reserved.js +159 -0
  92. package/src/domain/position/index.js +1 -0
  93. package/src/domain/position/prepare.js +69 -49
  94. package/src/domain/position/timeout-reserved.js +162 -0
  95. package/src/domain/timeout/index.js +26 -2
  96. package/src/domain/transfer/index.js +22 -5
  97. package/src/domain/transfer/transform.js +19 -6
  98. package/src/handlers/admin/handler.js +0 -2
  99. package/src/handlers/bulk/fulfil/handler.js +5 -5
  100. package/src/handlers/bulk/get/handler.js +5 -5
  101. package/src/handlers/bulk/prepare/handler.js +9 -9
  102. package/src/handlers/bulk/processing/handler.js +8 -7
  103. package/src/handlers/bulk/shared/validator.js +1 -1
  104. package/src/handlers/positions/handler.js +23 -10
  105. package/src/handlers/positions/handlerBatch.js +54 -26
  106. package/src/handlers/register.js +2 -1
  107. package/src/handlers/timeouts/handler.js +212 -68
  108. package/src/handlers/transfers/FxFulfilService.js +387 -0
  109. package/src/handlers/transfers/createRemittanceEntity.js +106 -0
  110. package/src/handlers/transfers/dto.js +53 -0
  111. package/src/handlers/transfers/handler.js +609 -571
  112. package/src/handlers/transfers/prepare.js +572 -0
  113. package/src/handlers/transfers/validator.js +75 -14
  114. package/src/lib/cache.js +1 -1
  115. package/src/lib/config.js +6 -3
  116. package/src/lib/healthCheck/subServiceHealth.js +12 -2
  117. package/src/lib/proxyCache.js +131 -0
  118. package/src/models/bulkTransfer/facade.js +58 -82
  119. package/src/models/fxTransfer/duplicateCheck.js +153 -0
  120. package/src/models/fxTransfer/fxTransfer.js +578 -0
  121. package/src/models/fxTransfer/fxTransferError.js +53 -0
  122. package/src/models/fxTransfer/fxTransferExtension.js +41 -0
  123. package/src/models/fxTransfer/fxTransferTimeout.js +68 -0
  124. package/src/models/fxTransfer/index.js +15 -0
  125. package/src/models/fxTransfer/stateChange.js +47 -0
  126. package/src/models/fxTransfer/watchList.js +49 -0
  127. package/src/models/ledgerAccountType/ledgerAccountType.js +8 -32
  128. package/src/models/misc/segment.js +0 -1
  129. package/src/models/participant/externalParticipant.js +96 -0
  130. package/src/models/participant/externalParticipantCached.js +148 -0
  131. package/src/models/participant/facade.js +192 -123
  132. package/src/models/participant/participant.js +2 -1
  133. package/src/models/participant/participantCurrency.js +1 -1
  134. package/src/models/participant/participantPosition.js +2 -8
  135. package/src/models/position/batch.js +90 -1
  136. package/src/models/position/facade.js +5 -5
  137. package/src/models/position/participantPositionChanges.js +68 -0
  138. package/src/models/settlement/settlementModel.js +5 -23
  139. package/src/models/transfer/facade.js +806 -447
  140. package/src/shared/constants.js +52 -0
  141. package/src/shared/fspiopErrorFactory.js +131 -0
  142. package/src/shared/logger/index.js +8 -0
  143. package/src/shared/loggingPlugin.js +43 -0
  144. package/src/shared/plugins.js +6 -0
  145. package/src/shared/setup.js +10 -0
  146. package/test-integration.Dockerfile +1 -1
  147. package/test.Dockerfile +1 -1
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Do not edit this file with editors other than draw.io -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1021px" height="616px" viewBox="-0.5 -0.5 1021 616" content="&lt;mxfile host=&quot;app.diagrams.net&quot; modified=&quot;2023-11-28T12:07:23.298Z&quot; agent=&quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36&quot; etag=&quot;sFkzszGgRs3rN2F7ZG-1&quot; version=&quot;22.1.4&quot; type=&quot;google&quot;&gt;&lt;diagram name=&quot;Page-1&quot; id=&quot;LdwZDLGsTjlFSdrco5mT&quot;&gt;7Vzbdps4FP0aP5qFLlz8mEvTzkzb8VpJ16SPxIiYVWw8QBK7Xz/CSAZJ2MZEYJJJHtpIYBm2tvY5OucoI3S1WH9OvNX8W+yTaARNfz1C1yNIf2xA/8t7NkWP49pFx2MS+kUXKDtuw9+EdZqs9yn0SSrcmMVxlIUrsXMWL5dklgl9XpLEL+JtQRyJ37ryHonScTvzIrX3n9DP5kWvC52y/wsJH+f8m4E9Ka4sPH4ze5N07vnxS6ULfRqhqySOs+K3xfqKRDl4HJficzd7ru4eLCHLrMkH/lp8nwbWHfn175/fwfT+x2rhW2NYjPLsRU/shacJyceknV+8pR+RhD19tuGQJPHT0if5qGCELl/mYUZuV94sv/pCSUD75tkiYpeDMIqu4ihOtp9FvkfcYEb70yyJf5HKFXvmkoeAXlHfi73qM0kysq50sff8TOIFyZINvYVfRey9GOmgxebgpZxCwOdlXpk+m/V5jDWPu6FLYOkvDNsTcEYKzlm8CmfjLPGWaUCS8YrDvhds82SwgyCAs1qwffvBtuz8E/Eyu2XfVsOok5HnQDPgQQ3wO5CrwKOugMcK8N++0vbF9I/8X99bZW+S4WPgiki7VjOGg84obitIK7iSpX+RazJtzSIvTcOZCKVIdopOsrmvNn7mDQNavH29rl693rDWXnwzL3kk2XG2EF8wCuosVFC2akDmfQmJvCx8Fk1JHfDsG6ZxSJ+4nGQEpOUELXGMNH5KZoR9rKr90kg7I8QFEUsDFcgoA9HZ8jaV21b5DalClR0y7dnjKOwBBm1P/769G+UPf3OzvmNamaq8ovP11XugrodAJy8KH5c51ygP6CpHl/n6Cqltv2AXFqHv52NcJiQNf3sP2/FyBrH3pINblyPr+rhQHloRzDVhw5cOwQmr3TSQ6wAtpAKiaRwDWxwhDoKUZF1MsduXQDj/W4GAZkuBGAPHFqUGSU9zdoWYKPTBokJkb00f3A99qMIBgDLDMJ/hYL3XOz5RL9ZhtpULA9P9W9HOFQMYgLVKvcgbXC5Knan4Hj8FZanXGZEUxahTkoQUqZxvh7WoWLoH8EINNQs21CxGANMAFrBEEmA2Rk+yBuCebcSpsrbzdrk+yvuM1qpWflUPC0Pdpcu7xzgNszBeKgvkbW8fka1uH6064nW2fQTqxl2bCBVawjWosQKZuCpBVPoBQkd0aNvSJzywofBw3g7EW4KOyC7L1KQqSJans/tKXL87oa0p8NYwC/rpt556rSVozFpnUKwFpkg2jFuydiyxFmuzhdpYq4aQ0DEHcJiePV9/Wlx76EyQ6MXo8bIwFp0sKI7QoT+jBnumOwfmHaUddkv1bGkHoMZcCs9xGWdhQBdEjvmYPBO25N+P62jVZB56dh3VgIU+G9zcdXyFxRyYIXREFcTt3TdxmVqDc9+gGglRqJPOvVX+axCRNePQZS2dUvo6WauoqiG4a6CzoCpXqVOItnOLhOSWqYdqCIrxD1sW6KZUQ1hSJTg4qqmxhZv7qSpUURSuUnLcEGhQcghEx8Suy97XTb+8jrVJOVSjAFNvQ2rc0R5hQmhwMKnJ9hwm1ZXrE6YxloOJqCZV3i9O6u68HqdXuWDujNS7YA+uha2Din2CyyvvTic1blcNtrIO6sNW3UPePEUUmze9s8CmK8B8/oImqO4srHyvrjtTg1zYNtrk9JerOSG3grjF5cFDt9GC0RUDhcCYmOUPEKXRNY3JRByzeYmJ+F6KfL6JVAvscNPmtIr3IwCqNB6bhmk7H/H+RhtGaaXJRqcttYcX7+dBjC5qa07U0Yp0AzFRAI5J90e8PyeXVNKDQUvWyvTHw2OtGuawD/oQwwz288U35GA/Equ7JBvfnT1FHebP29pTdJKc6TWlXGw6iYl16jeKwQarrSrt4u18IDmdeX5V2pcz2VXbBGxDqXO33n/CRI5Nnv+sBtLvfL+m9oDphSOWCjLvuycvhpPxeJGfPSy9QHKypu3JBTmnOjgvBqu+t7OtWqhXiaE6MZPhOzFjfuqyby8GDyIfJ8QBKsm5IRxy6DQdJxsqu+0hB7luz3ntKag9mlX/vCUpiwH1UhRqt539VhsMzIBZ0iQq1XJNSYeRGLofXvAIq3s019iagsUiVOuCBmrA+ALQc5pGj73iU9+DhapJvb6Hkjo58XX+kjrcYWm1U9T2d30s6UyBVtzCr+i1nkwa4v0EWrFacDs5pPC9HmiZmE6VvKDteZZm8ZGjdOYs1Zft2uV+TWBhRb169GEU16Mpwy3p5AySSy81Oc6yr8RfYO9zyUW/4v2ip91nGhmrMcRtVZ15V7BqvyEeaqEPRGJJZF2hD99O9VLog9VgYX1N3vCxRdg2JHTdM6PLo24KgW8L/XwXINcEvDWBTJvlH/YqRKX882jo038=&lt;/diagram&gt;&lt;/mxfile&gt;" style="background-color: rgb(255, 255, 255);"><defs/><g><rect x="552" y="165" width="120" height="60" rx="9" ry="9" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 195px; margin-left: 553px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">Prepare Handler</div></div></div></foreignObject><text x="612" y="199" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">Prepare Handler</text></switch></g><rect x="470" y="65" width="260" height="30" fill="#fff2cc" stroke="#d6b656" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 258px; height: 1px; padding-top: 80px; margin-left: 471px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;">topic-transfer-prepare</div></div></div></foreignObject><text x="600" y="84" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle" font-weight="bold">topic-transfer-prepare</text></switch></g><rect x="240" y="0" width="120" height="160" rx="18" ry="18" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 80px; margin-left: 241px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">ML API Adapter</div></div></div></foreignObject><text x="300" y="84" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">ML API Adapter</text></switch></g><path d="M 110 40 L 233.63 40" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 238.88 40 L 231.88 43.5 L 233.63 40 L 231.88 36.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 25px; margin-left: 163px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; background-color: rgb(255, 255, 255); white-space: nowrap;">1. POST /FxTransfers</div></div></div></foreignObject><text x="163" y="28" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle" font-weight="bold">1. POST /FxTransfers</text></switch></g><path d="M 110 120 L 233.63 120" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 238.88 120 L 231.88 123.5 L 233.63 120 L 231.88 116.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 105px; margin-left: 163px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; background-color: rgb(255, 255, 255); white-space: nowrap;">4. POST /transfers</div></div></div></foreignObject><text x="163" y="108" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle" font-weight="bold">4. POST /transfers</text></switch></g><path d="M 581.02 98 L 581.91 158.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 581.98 163.88 L 578.38 156.93 L 581.91 158.63 L 585.38 156.83 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 138px; margin-left: 540px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; background-color: rgb(255, 255, 255); white-space: nowrap;">2. fx-prepare</div></div></div></foreignObject><text x="540" y="141" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle" font-weight="bold">2. fx-prep...</text></switch></g><rect x="470" y="275" width="550" height="30" fill="#fff2cc" stroke="#d6b656" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 548px; height: 1px; padding-top: 290px; margin-left: 471px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;">topic-transfer-position</div></div></div></foreignObject><text x="745" y="294" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle" font-weight="bold">topic-transfer-position</text></switch></g><path d="M 582 225 L 582.17 264.64" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 582.2 269.89 L 578.66 262.91 L 582.17 264.64 L 585.66 262.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 582.75 305.99 L 582.1 348.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 582.02 353.88 L 578.62 346.83 L 582.1 348.63 L 585.62 346.94 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 337px; margin-left: 541px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; background-color: rgb(255, 255, 255); white-space: nowrap;">3. fx-prepare</div></div></div></foreignObject><text x="541" y="340" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle" font-weight="bold">3. fx-prepare</text></switch></g><rect x="552" y="355" width="120" height="60" rx="9" ry="9" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 385px; margin-left: 553px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">Position Handler</div></div></div></foreignObject><text x="612" y="389" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">Position Handler</text></switch></g><rect x="470" y="465" width="550" height="30" fill="#fff2cc" stroke="#d6b656" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 548px; height: 1px; padding-top: 480px; margin-left: 471px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;">topic-notification-event</div></div></div></foreignObject><text x="745" y="484" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle" font-weight="bold">topic-notification-event</text></switch></g><path d="M 582 415 L 582 458.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 582 463.88 L 578.5 456.88 L 582 458.63 L 585.5 456.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 750 555.5 L 760.5 555.5 L 745 574.5 L 729.5 555.5 L 740 555.5 L 740 514.5 L 729.5 514.5 L 745 495.5 L 760.5 514.5 L 750 514.5 Z" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><ellipse cx="684" cy="590" rx="50" ry="25" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 590px; margin-left: 635px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">FXP</div></div></div></foreignObject><text x="684" y="594" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">FXP</text></switch></g><ellipse cx="804" cy="590" rx="50" ry="25" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 590px; margin-left: 755px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">Payee</div></div></div></foreignObject><text x="804" y="594" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">Payee</text></switch></g><ellipse cx="50" cy="75" rx="50" ry="25" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 98px; height: 1px; padding-top: 75px; margin-left: 1px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">Payer</div></div></div></foreignObject><text x="50" y="79" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">Payer</text></switch></g><rect x="520" y="405" width="50" height="20" fill="#f8cecc" stroke="#b85450" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 48px; height: 1px; padding-top: 415px; margin-left: 521px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">Payer</div></div></div></foreignObject><text x="545" y="419" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">Payer</text></switch></g><rect x="828" y="165" width="120" height="60" rx="9" ry="9" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 195px; margin-left: 829px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">Fulfil Handler</div></div></div></foreignObject><text x="888" y="199" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">Fulfil Handler</text></switch></g><path d="M 641.9 95.99 L 641.99 158.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 642 163.88 L 638.49 156.89 L 641.99 158.63 L 645.49 156.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 135px; margin-left: 680px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; background-color: rgb(255, 255, 255); white-space: nowrap;">5. prepare</div></div></div></foreignObject><text x="680" y="138" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle" font-weight="bold">5. prepare</text></switch></g><path d="M 642 225 L 641.18 266.62" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 641.07 271.87 L 637.71 264.8 L 641.18 266.62 L 644.71 264.94 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 643.25 308.99 L 642.17 348.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 642.03 353.88 L 638.72 346.79 L 642.17 348.63 L 645.72 346.98 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 336px; margin-left: 681px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; background-color: rgb(255, 255, 255); white-space: nowrap;">6. prepare</div></div></div></foreignObject><text x="681" y="339" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle" font-weight="bold">6. prepare</text></switch></g><path d="M 642 415 L 642.13 458.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 642.15 463.88 L 638.63 456.89 L 642.13 458.63 L 645.63 456.87 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><rect x="760" y="65" width="260" height="30" fill="#fff2cc" stroke="#d6b656" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 258px; height: 1px; padding-top: 80px; margin-left: 761px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; white-space: normal; overflow-wrap: normal;">topic-transfer-fulfil</div></div></div></foreignObject><text x="890" y="84" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle" font-weight="bold">topic-transfer-fulfil</text></switch></g><path d="M 858.02 97.01 L 858 158.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 858 163.88 L 854.5 156.88 L 858 158.63 L 861.5 156.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 132px; margin-left: 834px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; background-color: rgb(255, 255, 255); white-space: nowrap;">7. fulfil</div></div></div></foreignObject><text x="834" y="135" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle" font-weight="bold">7. fulfil</text></switch></g><path d="M 440.5 75 L 440.5 64.5 L 459.5 80 L 440.5 95.5 L 440.5 85 L 440 85 L 379.5 85 L 379.5 95.5 L 360.5 80 L 379.5 64.5 L 379.5 75 L 440 75 Z" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="1.42" pointer-events="all"/><path d="M 440.5 75 L 440.5 64.5 L 459.5 80 L 440.5 95.5 L 440.5 85" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="4" pointer-events="all"/><path d="M 379.5 85 L 379.5 95.5 L 360.5 80 L 379.5 64.5 L 379.5 75" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="4" pointer-events="all"/><path d="M 858 225 L 858 258.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 858 263.88 L 854.5 256.88 L 858 258.63 L 861.5 256.88 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 240px; margin-left: 821px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; background-color: rgb(255, 255, 255); white-space: nowrap;">8. commit</div></div></div></foreignObject><text x="821" y="243" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle" font-weight="bold">8. commit</text></switch></g><rect x="828" y="355" width="120" height="60" rx="9" ry="9" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 385px; margin-left: 829px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">Position Handler</div></div></div></foreignObject><text x="888" y="389" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">Position Handler</text></switch></g><path d="M 857.2 308 L 857.89 348.63" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 857.98 353.88 L 854.36 346.94 L 857.89 348.63 L 861.36 346.82 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><path d="M 858 415 L 858 435 L 970 435 L 968.91 315.36" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 968.86 310.11 L 972.42 317.08 L 968.91 315.36 L 965.42 317.14 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 435px; margin-left: 969px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; font-weight: bold; background-color: rgb(255, 255, 255); white-space: nowrap;">9. commit</div></div></div></foreignObject><text x="969" y="438" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle" font-weight="bold">9. commit</text></switch></g><rect x="655" y="405" width="75" height="20" fill="#f8cecc" stroke="#b85450" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 73px; height: 1px; padding-top: 415px; margin-left: 656px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">FXP Target</div></div></div></foreignObject><text x="693" y="419" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">FXP Target</text></switch></g><rect x="766.5" y="395" width="75" height="20" fill="#f8cecc" stroke="#b85450" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 73px; height: 1px; padding-top: 405px; margin-left: 768px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">Payee</div></div></div></foreignObject><text x="804" y="409" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">Payee</text></switch></g><rect x="766.5" y="365" width="75" height="20" fill="#f8cecc" stroke="#b85450" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 73px; height: 1px; padding-top: 375px; margin-left: 768px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">FXP Source</div></div></div></foreignObject><text x="804" y="379" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">FXP Source</text></switch></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.drawio.com/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- Do not edit this file with editors other than draw.io -->
3
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="844px" height="641px" viewBox="-0.5 -0.5 844 641" content="&lt;mxfile host=&quot;app.diagrams.net&quot; modified=&quot;2023-11-22T20:13:33.947Z&quot; agent=&quot;Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36&quot; etag=&quot;5eKfuJ4aQEzXMdV0Dim7&quot; version=&quot;22.1.3&quot; type=&quot;google&quot;&gt;&lt;diagram name=&quot;Page-1&quot; id=&quot;x507C-aHdyedEn7GxiDP&quot;&gt;7Vvfc5s4EP5rPHP3YI9AiB+PTdI0M9dM3XN6lz5iEDY9jDxCju3+9SeMwEgijuOCg9vmxWgFAn27++1qpQzg9WLzgfrL+T0JcTIwQbgZwJuByf9sg//kkm0hcVy7EMxoHBYiYy+YxN+xEAIhXcUhzqQbGSEJi5eyMCBpigMmyXxKyVq+LSKJ/NalP8OaYBL4iS79Nw7ZvJC6prOX3+F4Ni/fbNhe0bPwy5vFTLK5H5J1TQTfD+A1JYQVV4vNNU5y8Epciudun+mtPozilB3zgP/NABOSbmZhOg3uHlerz/8sh2KUJz9ZiQnff+TtyTpmwVx8N9uWYFCySkOcj2cM4NV6HjM8WfpB3rvm6ueyOVskovsJUxZzIN8l8SzlsilhjCx4RxQnyTVJCN0NCkMfu1HA5Rmj5D9c67EDF08j3qNPtfxu/g68qYnE1D9gssCMbvktZa8l1CDs0ECivd5r1ShVNa9pFJU3+sKSZtXYe7D5hcD7FdhDDfuHh78Gpp3wN19NKb+a5Vd/jP0tpn/+mDIUzKMI20Ej5qHjTQFoB/OhiWDfQLc00DVgcRq+y5mDt4LEz7I4kLHcA5/jxOGh20feGIIRAG4p+Zp3j4BtloKbTf2Bm229NcY05tPDVAifxZ75dIbZy/6MQ4nVdA3VFICa8BcyihOfxU8yFzbpRLxhTGL+xXsDMKDida4lj5GRFQ2weKxOXspIluK+0FMMpEBGG2hnI9W8TzcbpJmNMeLt8afJwyA34Nto80D9NIu4DjV74sr46E95YJTMyBe8GHAl55rXCHMRh2E+xhXFWfzdn+7Gy81jmc9yN290NUA3jQZz0PhVD67Cp3iJFKEaPRuMIEK2rNtWTMZSGMORByBRlOFONGyYrTPDJmYlMZhICApeQMgR7T0t5I1traGSQkU0xggYjswzJoSt8kzhloUo+Pb10/oqST6H+B5Yyd90CK3hZfJRxRpbhVVeS0dDlY7gcXTErcff1m4TntyFOevZBdwx1pdLIqzKKdtgLAQdmbGsdoKcrcQ4eDbKOm8yY0H7dzJzKAc5lj20gezesYee7yA532EXQB5tpjsIKZmJ2YpROWfgjkMB/MXF5+3j+BKXnpYK7LErT1ON5KesPBsR1/PL55f7+GfA3DLfHPP2A2Qtpy9y7iqnN91Xp/TPgl7Pvy8gNFqOJ3ub550WGfUYC5SCwTlDY6NJ6ZHR6nVefdAv+pxWO5ZsU+a5QqPdFWkAiS/QYbqoVvtyEu6AdiuKL670xeQvLVmHSroG+WrmJEoylZoBAp1VHhvxdzRrdCS+6VciftChepyHDz1TZht0LrZxz5iiuAj+ujmKK+coVc7ywzmKbSgjdcwInmYx7qUxQmn0fWYEx5FGVcJHhytz0BUjGGVNryIE4Nm/LCFwrJUagXfq5qSy8DWBUsbpmBAMvZhj9nt38rDh93h7EippgsL8HbKCXj7anQvJgSVZzGKSaqp9VcnoWbd+xRkbpDiUqxeAvAaHVnfhWiv/NGyC7Y43XROK+c8DznLV3vk0xVmmwcdnzWSM5PJZSlKs1NqE6HjnaVKKTN4RSZk4FmcaZVt8JGhBaYrObF1lpot0nXVWsmvY1Lp9HOfaKlagnNZ6Y++WM0ISetB5a4vXy1NtJQ9y8QIeWb6oGsVzBrBOKV90kofUSxqHSh89yVdaW8CYSmXNcpRDNl2nK3qBze7z5uJhR+vxEsaQDcY43xJGL1rtdrV6Rd7KsQ0E35q69UpQEfgmBZ/1CTst8CHbKiXt48eb+2PyhY3u/9kAvv8f&lt;/diagram&gt;&lt;/mxfile&gt;" style="background-color: rgb(255, 255, 255);"><defs/><g><rect x="393" y="90" width="120" height="550" rx="18" ry="18" fill="#dae8fc" stroke="#6c8ebf" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe flex-end; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 637px; margin-left: 394px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">ML Switch</div></div></div></foreignObject><text x="453" y="637" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">ML Switch</text></switch></g><rect x="0" y="90" width="120" height="550" rx="18" ry="18" fill="#ffe6cc" stroke="#d79b00" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 365px; margin-left: 1px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">TTK<br />(Payer)</div></div></div></foreignObject><text x="60" y="369" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">TTK...</text></switch></g><path d="M 123 124 L 385.67 124.1" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 390.92 124.1 L 383.92 127.6 L 385.67 124.1 L 383.92 120.6 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 141px; margin-left: 254px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">1. POST /fxTransfer</div></div></div></foreignObject><text x="254" y="144" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">1. POST /fxTransfer</text></switch></g><path d="M 720 218.11 L 521.41 218.15" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 516.16 218.15 L 523.16 214.65 L 521.41 218.15 L 523.16 221.65 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 236px; margin-left: 614px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">3. PUT /fxTransfer</div></div></div></foreignObject><text x="614" y="239" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">3. PUT /fxTransfer</text></switch></g><path d="M 123 330 L 385.67 329.8" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 390.92 329.8 L 383.92 333.31 L 385.67 329.8 L 383.92 326.31 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 341px; margin-left: 253px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">5. POST /transfer</div></div></div></foreignObject><text x="253" y="345" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">5. POST /transfer</text></switch></g><rect x="723" y="90" width="120" height="230" rx="18" ry="18" fill="#ffe6cc" stroke="#d79b00" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 205px; margin-left: 724px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">TTK<br />(FXP)</div></div></div></foreignObject><text x="783" y="209" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">TTK...</text></switch></g><rect x="723" y="360" width="120" height="230" rx="18" ry="18" fill="#ffe6cc" stroke="#d79b00" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 118px; height: 1px; padding-top: 475px; margin-left: 724px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">TTK<br />(Payee)</div></div></div></foreignObject><text x="783" y="479" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">TTK...</text></switch></g><path d="M 389.04 244 L 129.37 244" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 124.12 244 L 131.12 240.5 L 129.37 244 L 131.12 247.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 261px; margin-left: 254px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">4. PUT /fxTransfer</div></div></div></foreignObject><text x="254" y="264" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">4. PUT /fxTransfer</text></switch></g><path d="M 723 475 L 519.37 476.07" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 514.12 476.09 L 521.1 472.56 L 519.37 476.07 L 521.14 479.56 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 493px; margin-left: 585px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">7. PUT /transfer</div></div></div></foreignObject><text x="585" y="496" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">7. PUT /transfer</text></switch></g><path d="M 389.04 559.15 L 129.37 559" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 124.12 559 L 131.12 555.5 L 129.37 559 L 131.12 562.5 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 570px; margin-left: 254px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">8. PUT /transfer</div></div></div></foreignObject><text x="254" y="573" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">8. PUT /transfer</text></switch></g><path d="M 513.96 142.8 L 716.63 142.99" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 721.88 143 L 714.88 146.49 L 716.63 142.99 L 714.89 139.49 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 161px; margin-left: 613px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">2. POST /fxTransfer</div></div></div></foreignObject><text x="613" y="165" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">2. POST /fxTransfer</text></switch></g><rect x="403" y="120" width="90" height="40" rx="6" ry="6" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 88px; height: 1px; padding-top: 140px; margin-left: 404px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">Payer position</div></div></div></foreignObject><text x="448" y="144" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">Payer position</text></switch></g><rect x="303" y="0" width="285" height="30" fill="none" stroke="none" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 283px; height: 1px; padding-top: 15px; margin-left: 304px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 21px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">ML Core Test Harness</div></div></div></foreignObject><text x="446" y="21" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="21px" text-anchor="middle">ML Core Test Harness</text></switch></g><rect x="400.5" y="310" width="90" height="40" rx="6" ry="6" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 88px; height: 1px; padding-top: 330px; margin-left: 402px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">FXP Target Position</div></div></div></foreignObject><text x="446" y="334" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">FXP Target Posi...</text></switch></g><path d="M 513 384.25 L 716.63 383.93" fill="none" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="stroke"/><path d="M 721.88 383.92 L 714.89 387.43 L 716.63 383.93 L 714.88 380.43 Z" fill="rgb(0, 0, 0)" stroke="rgb(0, 0, 0)" stroke-miterlimit="10" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 1px; height: 1px; padding-top: 401px; margin-left: 579px;"><div data-drawio-colors="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 11px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; background-color: rgb(255, 255, 255); white-space: nowrap;">6. POST /transfer</div></div></div></foreignObject><text x="579" y="404" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="11px" text-anchor="middle">6. POST /transfer</text></switch></g><rect x="413" y="470" width="90" height="40" rx="6" ry="6" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 88px; height: 1px; padding-top: 490px; margin-left: 414px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">Payee Position</div></div></div></foreignObject><text x="458" y="494" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">Payee Position</text></switch></g><rect x="400.5" y="504.5" width="90" height="40" rx="6" ry="6" fill="rgb(255, 255, 255)" stroke="rgb(0, 0, 0)" pointer-events="all"/><g transform="translate(-0.5 -0.5)"><switch><foreignObject pointer-events="none" width="100%" height="100%" requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility" style="overflow: visible; text-align: left;"><div xmlns="http://www.w3.org/1999/xhtml" style="display: flex; align-items: unsafe center; justify-content: unsafe center; width: 88px; height: 1px; padding-top: 525px; margin-left: 402px;"><div data-drawio-colors="color: rgb(0, 0, 0); " style="box-sizing: border-box; font-size: 0px; text-align: center;"><div style="display: inline-block; font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0); line-height: 1.2; pointer-events: all; white-space: normal; overflow-wrap: normal;">FXP Source Position</div></div></div></foreignObject><text x="446" y="528" fill="rgb(0, 0, 0)" font-family="Helvetica" font-size="12px" text-anchor="middle">FXP Source Posi...</text></switch></g></g><switch><g requiredFeatures="http://www.w3.org/TR/SVG11/feature#Extensibility"/><a transform="translate(0,-5)" xlink:href="https://www.drawio.com/doc/faq/svg-export-text-problems" target="_blank"><text text-anchor="middle" font-size="10px" x="50%" y="100%">Text is not SVG - cannot display</text></a></switch></svg>
@@ -0,0 +1,123 @@
1
+ @startuml
2
+ title Transfer/ FX transfer Timeout-Handler Flow
3
+
4
+ autonumber
5
+ hide footbox
6
+ skinparam ParticipantPadding 10
7
+
8
+ box "Central Services" #MistyRose
9
+ participant "Timeout \n handler <i>(cron)</i>" as toh
10
+ participant "Position \n handler" as ph
11
+ database "central-ledger\nDB" as clDb
12
+ end box
13
+ box Kafka
14
+ queue "topic-\n transfer-position" as topicTP
15
+ queue "topic-\n notification-event" as topicNE
16
+ end box
17
+ box "ML API Adapter Services" #LightBlue
18
+ participant "Notification \n handler" as nh
19
+ end box
20
+ participant "FXP" as fxp
21
+ actor "DFSP_1 \n<i>Payer</i>" as payer
22
+ actor "DFSP_2 \n<i>Payee</i>" as payee
23
+
24
+ legend
25
+ <i>DB tables:</i>
26
+
27
+ <b>TT</b> - transferTimeout <b>fxTT</b> - fxTransferTimeout
28
+ <b>TSC</b> - transferStateChange <b>fxTSC</b> - fxTransferStateChange
29
+ <b>TE</b> - transferError <b>fxTE</b> - fxTransferError
30
+ end legend
31
+
32
+
33
+ autonumber 1
34
+ toh --> toh : run on <i>cronTime</i>\n HANDLERS_TIMEOUT_TIMEXP (default: 15sec)
35
+ activate toh
36
+ toh -> clDb : cleanup <b>TT</b> for <i>transfers</i> in particular states: \n [COMMITTED, ABORTED, RECEIVED_FULFIL, RECEIVED_REJECT, RESERVED_TIMEOUT]
37
+
38
+ toh -> clDb : Insert <i>(transferId, expirationDate)</i> into <b>TT</b> for transfers in particular states:\n <i>[RECEIVED_PREPARE, RESERVED]</i>
39
+ toh -> clDb : Insert <i>EXPIRED_PREPARED</i> state into <b>TSC</b> for transfers in <i>RECEIVED_PREPARE</i> states
40
+ toh -> clDb : Insert <i>RESERVED_TIMEOUT</i> state into <b>TSC</b> for transfers in <i>RESERVED</i> state
41
+ toh -> clDb : Insert <i>expired error info</i> into <b>TE</b>
42
+
43
+ toh -> clDb : get <i>expired</i> transfers details from <b>TT</b>
44
+
45
+ toh --> toh : for each expired transfer
46
+ activate toh
47
+ autonumber 8.1
48
+ alt state === EXPIRED_PREPARED
49
+ toh ->o topicNE : produce <i>notification timeout-received</i> message
50
+ else state === RESERVED_TIMEOUT
51
+ toh ->o topicTP : produce <i>position timeout-reserved</i> message
52
+ end
53
+ toh -> clDb : find related <i>fxTransfer</i> using <i>cyril</i> and check if it's NOT expeired yet
54
+ alt related <i>NOT expired</i> fxTransfer found
55
+ toh -> clDb : Upsert row with <i>(fxTransferId, expirationDate)</i> into <b>fxTT</b>
56
+ note right: expirationDate === transfer.expirationDate \n OR now?
57
+ alt fxState === RESERVED or RECEIVED_FULFIL_DEPENDENT
58
+ toh -> clDb : Update fxState to <i>RESERVED_TIMEOUT</i> into <b>fxTSC</b>
59
+ toh ->o topicTP : produce <i>position fx-timeout-reserved</i> message
60
+ else fxState === RECEIVED_PREPARE
61
+ toh -> clDb : Update fxState to <i>EXPIRED_PREPARED</i> into <b>fxTSC</b>
62
+ toh ->o topicNE : produce <i>notification fx-timeout-received</i> message
63
+ end
64
+ end
65
+ deactivate toh
66
+ deactivate toh
67
+
68
+ autonumber 9
69
+ toh --> toh : run fxTimeout logic on <i>cronTime</i>\n HANDLERS_TIMEOUT_TIMEXP (default: 15sec)
70
+ activate toh
71
+ toh -> clDb : cleanup <b>fxTT</b> for <i>fxTransfers</i> in particular states: \n [COMMITTED, ABORTED, RECEIVED_FULFIL_DEPENDENT, RECEIVED_REJECT, RESERVED_TIMEOUT]
72
+
73
+ toh -> clDb : Insert <i>(fxTransferId, expirationDate)</i> into <b>fxTT</b> for fxTransfers in particular states:\n <i>[RECEIVED_PREPARE, RESERVED]</i>
74
+ toh -> clDb : Insert <i>EXPIRED_PREPARED</i> state into <b>fxTSC</b> for fxTransfers in <i>RECEIVED_PREPARE</i> states
75
+ toh -> clDb : Insert <i>RESERVED_TIMEOUT</i> state into <b>fxTSC</b> for fxTransfers in <i>RESERVED</i> state
76
+ toh -> clDb : Insert <i>expired error info</i> into <b>fxTE</b>
77
+
78
+ toh -> clDb : get <i>expired</i> fxTransfers details from <b>fxTT</b>
79
+
80
+ toh --> toh : for each expired fxTransfer
81
+ activate toh
82
+ autonumber 16.1
83
+ alt state === EXPIRED_PREPARED
84
+ toh ->o topicNE : produce <i>notification fx-timeout-received</i> message
85
+ else state === RESERVED_TIMEOUT
86
+ toh ->o topicTP : produce <i>position fx-timeout-reserved</i> message
87
+ end
88
+ toh -> clDb : find related <i>transfer</i> using <i>cyril</i> and check it's NOT expired yet
89
+ note right: think, what if related transfer is already commited?
90
+ alt related NOT expired transfer found
91
+ toh -> clDb : Upsert <i>(transferId, expirationDate)</i> into <b>TT</b>
92
+ toh -> clDb : Insert <i>expired error info</i> into <b>TE</b>
93
+ alt state === RECEIVED_PREPARE
94
+ toh -> clDb : Insert <i>EXPIRED_PREPARED</i> state into <b>TSC</b> with reason <i>"related fxTransfer expired"</i>
95
+ toh ->o topicNE : produce <i>notification timeout-received</i> message
96
+ else state === RESERVED
97
+ toh -> clDb : Insert <i>RESERVED_TIMEOUT</i> state into <b>TSC</b> with reason <i>"related fxTransfer expired"</i>
98
+ toh ->o topicTP : produce <i>position timeout-reserved</i> message
99
+ end
100
+ end
101
+
102
+ deactivate toh
103
+ deactivate toh
104
+
105
+ autonumber 17
106
+ topicNE o-> nh : consume <i>notification</i>\n message
107
+ activate nh
108
+ nh -> payer : send error <i>notification</i>\n callback to <i>payer</i>
109
+ deactivate nh
110
+
111
+ topicTP o-> ph : consume <i>position timeout/fx-timeout</i>\n message
112
+ activate ph
113
+ ph --> ph : process <i>timeout / fx-timeout</i> transfer
114
+ ph ->o topicNE : produce notification <i>timeout / fx-timeout</i> messages
115
+
116
+ deactivate ph
117
+
118
+ topicNE o-> nh : consume <i>notification</i>\n message
119
+ activate nh
120
+ nh -> payee : send error <i>notification</i>\n callback to <i>payee</i>
121
+ deactivate nh
122
+
123
+ @enduml
@@ -0,0 +1,81 @@
1
+ @startuml
2
+ title Transfer Timeout-Handler Flow \n(current impl.)
3
+
4
+ autonumber
5
+ hide footbox
6
+ skinparam ParticipantPadding 10
7
+
8
+ box "Central Services" #MistyRose
9
+ participant "Timeout \n handler <i>(cron)</i>" as toh
10
+ participant "Position \n handler" as ph
11
+ database "central-ledger\nDB" as clDb
12
+ end box
13
+ box Kafka
14
+ queue "topic-\n transfer-position" as topicTP
15
+ queue "topic-\n notification-event" as topicNE
16
+ end box
17
+ box "ML API Adapter Services" #LightBlue
18
+ participant "Notification \n handler" as nh
19
+ end box
20
+ actor "DFSP_1 \n<i>Payer</i>" as payer
21
+ actor "DFSP_2 \n<i>Payee</i>" as payee
22
+
23
+ toh --> toh : run on cronTime\n <i>HANDLERS_TIMEOUT_TIMEXP</i>
24
+ activate toh
25
+ toh --> toh : cleanup transferTimeout (<b>TT<b>)
26
+ note right : <b>TT</b> innerJoin <b>TSC</b>\n where TSC.transferStateId in [...]
27
+ activate toh
28
+ autonumber 2.1
29
+ toh -> clDb : delete from <b>TT</b> by <i>ttIdList</i>
30
+ note right : table: <b>TT</b> (transferTimeout)
31
+ deactivate toh
32
+
33
+ autonumber 3
34
+ toh -> clDb : get <i>segmentId, intervalMin, intervalMax</i>
35
+ note right : tables:\n <b>segment</b>,\n <b>TSC</b> (transferStateChange)
36
+
37
+ toh --> toh : update timeoutExpireReserved and get <i>expiredTransfers</i>
38
+ activate toh
39
+ autonumber 6.1
40
+ toh -> clDb : Insert <i>expirationDate<i> into <b>TT</b>\n for transfers in [<i>intervalMin, ... intervalMax</i>]
41
+ note right : table: <b>TT</b>
42
+ toh -> clDb : Insert <i>EXPIRED_PREPARED</i> into <b>TSC</b> for <i>RECEIVED_PREPARE</i> state
43
+ note right : table: <b>TSC</b>
44
+ toh -> clDb : Insert <i>RESERVED_TIMEOUT</i> into <b>TSC</b> for <i>RESERVED</i> state
45
+ note right : table: <b>TSC</b>
46
+ toh -> clDb : Insert <i>error info</i> into <b>transferError (TE)</b>
47
+ note right : table: <b>TE</b>
48
+ toh -> clDb : get <i>expired</i> transfers details from <b>TT</b>
49
+ note right : <b>TT</b> <i>innerJoin</i> other tables
50
+ deactivate toh
51
+
52
+ autonumber 7
53
+ toh --> toh : for each expiredTransfer
54
+ activate toh
55
+ alt state === EXPIRED_PREPARED
56
+ autonumber 7.1
57
+ toh ->o topicNE : produce <i>notification timeout-received</i> message
58
+ else state === RESERVED_TIMEOUT
59
+ autonumber 7.1
60
+ toh ->o topicTP : produce <i>position timeout-reserved</i> message
61
+ end
62
+ deactivate toh
63
+ deactivate toh
64
+
65
+ autonumber 8
66
+ topicNE o-> nh : consume <i>notification</i>\n message
67
+ activate nh
68
+ nh -> payer : send <i>notification</i>\n callback to <i>payer</i>
69
+ deactivate nh
70
+
71
+ topicTP o-> ph : consume <i>position timeout</i>\n message
72
+ activate ph
73
+ ph --> ph : process <i>position timeout</i>
74
+ ph ->o topicNE
75
+ deactivate ph
76
+ topicNE o-> nh : consume <i>notification</i>\n message
77
+ activate nh
78
+ nh -> payee : send <i>notification</i>\n callback to <i>payee</i>
79
+ deactivate nh
80
+
81
+ @enduml
@@ -0,0 +1,75 @@
1
+ @startuml
2
+
3
+ state RECEIVED {
4
+ state RECEIVED_PREPARE {
5
+ }
6
+ }
7
+
8
+ state RESERVED_ {
9
+ state RESERVED {
10
+ }
11
+ state RESERVED_FORWARDED {
12
+ }
13
+ state RECEIVED_FULFIL {
14
+ }
15
+ state RECEIVED_FULFIL_DEPENDENT {
16
+ }
17
+ state RESERVED_TIMEOUT {
18
+ }
19
+ state RECEIVED_REJECT {
20
+ }
21
+ state RECEIVED_ERROR {
22
+ }
23
+ }
24
+
25
+ state COMMITTED {
26
+ }
27
+
28
+ state ABORTED {
29
+ state ABORTED_ERROR {
30
+ }
31
+ state ABORTED_REJECTED {
32
+ }
33
+ state EXPIRED_PREPARED {
34
+ }
35
+ state EXPIRED_RESERVED {
36
+ }
37
+ state FAILED {
38
+ }
39
+ state INVALID {
40
+ }
41
+ }
42
+
43
+ RECEIVED_FULFIL_DEPENDENT : only FX-transfer
44
+ RECEIVED_FULFIL : only transfer
45
+
46
+ [*] --> RECEIVED_PREPARE : Transfer Prepare Request [Prepare handler] \n <i>(validation & dupl.check passed)</i>
47
+ [*] --> INVALID : Validation failed \n [Prepare handler]
48
+ RECEIVED_PREPARE --> RESERVED : [Position handler]: Liquidity check passed, \n funds reserved
49
+ RESERVED --> RECEIVED_REJECT : Reject callback from Payee with status "ABORTED"
50
+ RECEIVED_PREPARE --> RECEIVED_ERROR : Transfer Error callback from Payee
51
+
52
+ RECEIVED_FULFIL --> COMMITTED : Transfer committed [Position handler] \n <i>(commit funds, assign T. to settlement window)</i>
53
+ RECEIVED_REJECT --> ABORTED_REJECTED : Transfer Aborted by Payee
54
+ RECEIVED_ERROR --> ABORTED_ERROR : Hub aborts T.
55
+ RECEIVED_PREPARE --> EXPIRED_PREPARED : Timeout handler \n detects T. being EXPIRED
56
+
57
+ RESERVED --> RECEIVED_FULFIL : Fulfil callback from Payee \n with status "COMMITTED" \n [Fulfil handler]: \n <i>fulfilment check passed</i>
58
+ RESERVED --> RECEIVED_ERROR : Fulfil callback from Payee fails validation\n [Fulfil handler]
59
+ RESERVED --> RECEIVED_FULFIL_DEPENDENT : Recieved FX transfer fulfilment
60
+ RESERVED --> RESERVED_FORWARDED : A Proxy participant has acknowledged the transfer to be forwarded
61
+ RESERVED --> RESERVED_TIMEOUT : Timeout handler
62
+
63
+ RESERVED_FORWARDED --> RECEIVED_FULFIL : Fulfil callback from Payee \n with status "COMMITTED" \n [Fulfil handler]: \n <i>fulfilment check passed</i>
64
+ RESERVED_FORWARDED --> RECEIVED_ERROR : Fulfil callback from Payee fails validation\n [Fulfil handler]
65
+ RESERVED_FORWARDED --> RECEIVED_FULFIL_DEPENDENT : Recieved FX transfer fulfilment
66
+
67
+ RECEIVED_FULFIL_DEPENDENT --> COMMITTED : Dependant transfer committed [Position handler] \n <i>(commit funds, assign T. to settlement window)</i>
68
+ RECEIVED_FULFIL_DEPENDENT --> RESERVED_TIMEOUT : Dependant transfer is timed out
69
+
70
+ RESERVED_TIMEOUT --> EXPIRED_RESERVED : Hub aborts T. due to being EXPIRED
71
+
72
+ COMMITTED --> [*]
73
+ ABORTED --> [*]
74
+
75
+ @enduml
@@ -0,0 +1,13 @@
1
+ @startuml
2
+ hide empty description
3
+
4
+ [*] --> RECEIVED : Transfer Prepare Request
5
+ RECEIVED --> RESERVED : Net debit cap limit check passed
6
+ RECEIVED --> ABORTED : Failed validation OR timeout
7
+ RESERVED --> ABORTED : Abort response from Payee
8
+ RESERVED --> COMMITTED : Fulfil Response from Payee
9
+
10
+ COMMITTED --> [*]
11
+ ABORTED --> [*]
12
+
13
+ @enduml
@@ -0,0 +1,52 @@
1
+ /*****
2
+ License
3
+ --------------
4
+ Copyright © 2017 Bill & Melinda Gates Foundation
5
+ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+ http://www.apache.org/licenses/LICENSE-2.0
7
+ Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
+ Contributors
9
+ --------------
10
+ This is the official list of the Mojaloop project contributors for this file.
11
+ Names of the original copyright holders (individuals or organizations)
12
+ should be listed with a '*' in the first column. People who have
13
+ contributed from an organization can be listed under the organization
14
+ that actually holds the copyright for their contributions (see the
15
+ Gates Foundation organization for an example). Those individuals should have
16
+ their names indented and be marked with a '-'. Email address can be added
17
+ optionally within square brackets <email>.
18
+ * Gates Foundation
19
+ - Name Surname <name.surname@gatesfoundation.com>
20
+
21
+ * Infitx
22
+ - Vijaya Kumar Guthi <vijaya.guthi@infitx.com>
23
+ --------------
24
+ ******/
25
+
26
+ 'use strict'
27
+
28
+ exports.up = async (knex) => {
29
+ return await knex.schema.hasTable('transferParticipant').then(function(exists) {
30
+ if (exists) {
31
+ return knex.schema.alterTable('transferParticipant', (t) => {
32
+ t.integer('participantId').unsigned().notNullable()
33
+ // Disabling this as its throwing error while running the migration with existing data in the table
34
+ // t.foreign('participantId').references('participantId').inTable('participant')
35
+ t.index('participantId')
36
+ t.integer('participantCurrencyId').unsigned().nullable().alter()
37
+ })
38
+ }
39
+ })
40
+ }
41
+
42
+ exports.down = async (knex) => {
43
+ return await knex.schema.hasTable('transferParticipant').then(function(exists) {
44
+ if (exists) {
45
+ return knex.schema.alterTable('transferParticipant', (t) => {
46
+ t.dropIndex('participantId')
47
+ t.dropColumn('participantId')
48
+ t.integer('participantCurrencyId').unsigned().notNullable().alter()
49
+ })
50
+ }
51
+ })
52
+ }
@@ -0,0 +1,47 @@
1
+ /*****
2
+ License
3
+ --------------
4
+ Copyright © 2017 Bill & Melinda Gates Foundation
5
+ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+ http://www.apache.org/licenses/LICENSE-2.0
7
+ Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
+ Contributors
9
+ --------------
10
+ This is the official list of the Mojaloop project contributors for this file.
11
+ Names of the original copyright holders (individuals or organizations)
12
+ should be listed with a '*' in the first column. People who have
13
+ contributed from an organization can be listed under the organization
14
+ that actually holds the copyright for their contributions (see the
15
+ Gates Foundation organization for an example). Those individuals should have
16
+ their names indented and be marked with a '-'. Email address can be added
17
+ optionally within square brackets <email>.
18
+ * Gates Foundation
19
+ - Name Surname <name.surname@gatesfoundation.com>
20
+
21
+ * ModusBox
22
+ - Vijaya Kumar Guthi <vijaya.guthi@infitx.com>
23
+ --------------
24
+ ******/
25
+
26
+ 'use strict'
27
+
28
+ exports.up = async (knex) => {
29
+ return await knex.schema.hasTable('participantPositionChange').then(function(exists) {
30
+ if (exists) {
31
+ return knex.schema.alterTable('participantPositionChange', (t) => {
32
+ t.integer('participantCurrencyId').unsigned().notNullable()
33
+ t.foreign('participantCurrencyId').references('participantCurrencyId').inTable('participantCurrency')
34
+ })
35
+ }
36
+ })
37
+ }
38
+
39
+ exports.down = async (knex) => {
40
+ return await knex.schema.hasTable('participantPositionChange').then(function(exists) {
41
+ if (exists) {
42
+ return knex.schema.alterTable('participantPositionChange', (t) => {
43
+ t.dropColumn('participantCurrencyId')
44
+ })
45
+ }
46
+ })
47
+ }
@@ -0,0 +1,46 @@
1
+ /*****
2
+ License
3
+ --------------
4
+ Copyright © 2017 Bill & Melinda Gates Foundation
5
+ The Mojaloop files are made available by the Bill & Melinda Gates Foundation under the Apache License, Version 2.0 (the "License") and you may not use these files except in compliance with the License. You may obtain a copy of the License at
6
+ http://www.apache.org/licenses/LICENSE-2.0
7
+ Unless required by applicable law or agreed to in writing, the Mojaloop files are distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
8
+ Contributors
9
+ --------------
10
+ This is the official list of the Mojaloop project contributors for this file.
11
+ Names of the original copyright holders (individuals or organizations)
12
+ should be listed with a '*' in the first column. People who have
13
+ contributed from an organization can be listed under the organization
14
+ that actually holds the copyright for their contributions (see the
15
+ Gates Foundation organization for an example). Those individuals should have
16
+ their names indented and be marked with a '-'. Email address can be added
17
+ optionally within square brackets <email>.
18
+ * Gates Foundation
19
+ - Name Surname <name.surname@gatesfoundation.com>
20
+
21
+ * ModusBox
22
+ - Vijaya Kumar Guthi <vijaya.guthi@infitx.com>
23
+ --------------
24
+ ******/
25
+
26
+ 'use strict'
27
+
28
+ exports.up = async (knex) => {
29
+ return await knex.schema.hasTable('participantPositionChange').then(function(exists) {
30
+ if (exists) {
31
+ return knex.schema.alterTable('participantPositionChange', (t) => {
32
+ t.decimal('change', 18, 2).notNullable()
33
+ })
34
+ }
35
+ })
36
+ }
37
+
38
+ exports.down = async (knex) => {
39
+ return await knex.schema.hasTable('participantPositionChange').then(function(exists) {
40
+ if (exists) {
41
+ return knex.schema.alterTable('participantPositionChange', (t) => {
42
+ t.dropColumn('change')
43
+ })
44
+ }
45
+ })
46
+ }