Skip to content

FSP Simulator Implementation in Javascript

Notifications You must be signed in to change notification settings

sri-miriyala/simulator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simulators

Git Commit Git Releases Docker pulls CircleCI

Simulators that act as mock payer fsp and payee fsp which interact with the Switch.

Environmental Vars for FSP Simulator configuration

Variable Description Default
PARTIES_ENDPOINT Mojaloop Callback Endpoint for Parties 'http://localhost:1080'
QUOTES_ENDPOINT Mojaloop Callback Endpoint for Quotes 'http://localhost:1080'
TRANSFERS_ENDPOINT Mojaloop Callback Endpoint for Transfers 'http://localhost:1080'
TRANSFERS_FULFIL_RESPONSE_DISABLED Flag to disabled the Fulfil response callback to the TRANSFER_ENDPOINT 'false'
TRANSFERS_FULFILMENT ILP Fulfilment value 'XoSz1cL0tljJSCp_VtIYmPNw-zFUgGfbUqf69AagUzY'
TRANSFERS_CONDITION ILP Fulfilment condition 'HOr22-H3AfTDHrSkPjJtVPRdKouuMkDXTR4ejlQa8Ks'
TRANSFERS_ILPPACKET ILP Packet 'AQAAAAAAAADIEHByaXZhdGUucGF5ZWVmc3CCAiB7InRyYW5zYWN0aW9uSWQiOiIyZGY3NzRlMi1mMWRiLTRmZjctYTQ5NS0yZGRkMzdhZjdjMmMiLCJxdW90ZUlkIjoiMDNhNjA1NTAtNmYyZi00NTU2LThlMDQtMDcwM2UzOWI4N2ZmIiwicGF5ZWUiOnsicGFydHlJZEluZm8iOnsicGFydHlJZFR5cGUiOiJNU0lTRE4iLCJwYXJ0eUlkZW50aWZpZXIiOiIyNzcxMzgwMzkxMyIsImZzcElkIjoicGF5ZWVmc3AifSwicGVyc29uYWxJbmZvIjp7ImNvbXBsZXhOYW1lIjp7fX19LCJwYXllciI6eyJwYXJ0eUlkSW5mbyI6eyJwYXJ0eUlkVHlwZSI6Ik1TSVNETiIsInBhcnR5SWRlbnRpZmllciI6IjI3NzEzODAzOTExIiwiZnNwSWQiOiJwYXllcmZzcCJ9LCJwZXJzb25hbEluZm8iOnsiY29tcGxleE5hbWUiOnt9fX0sImFtb3VudCI6eyJjdXJyZW5jeSI6IlVTRCIsImFtb3VudCI6IjIwMCJ9LCJ0cmFuc2FjdGlvblR5cGUiOnsic2NlbmFyaW8iOiJERVBPU0lUIiwic3ViU2NlbmFyaW8iOiJERVBPU0lUIiwiaW5pdGlhdG9yIjoiUEFZRVIiLCJpbml0aWF0b3JUeXBlIjoiQ09OU1VNRVIiLCJyZWZ1bmRJbmZvIjp7fX19'

Environmental Vars for Metrics configuration

Variable Description Default
METRICS_DISABLED Flag to disable the Prometheus Metric collection end-point false
METRICS_PREFIX Prefix for all Prometheus Metrics 'moja_sim_'
METRICS_TIMEOUT Prometheus Metric collection timeout 5000
METRICS_SERVICENAME Prometheus Metric serviceName label applied to all Simulator metrics simulator

Building Docker image:

$ VER=v1.0.6-snapshot; docker build -t mojaloop/simulator:$VER .; docker push mojaloop/simulator:$VER

About

FSP Simulator Implementation in Javascript

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 97.0%
  • Smarty 2.0%
  • Dockerfile 1.0%