Use the domain module#
ContactCore.js exports pure services for the bundled application and Node tests. Supply a state reader, a persistence callback and optional clock or wait functions.
const C = require('./ios/Yuva/ContactCore.js');
C.migrate(state);
const api = C.createServices(() => state, saveState);
const eren = api.identity.profile('me', 'eren');Prepare the environment#
Use a fictional fixture with bank-wallet, card, transaction and mock-provider state. The maintained contact tests show the required setup. The domain module does not run an HTTP server.
Read the contract carefully#
HTTP examples in these docs are proposed internal contracts only. There is no production base URL, API key, remote SDK or endpoint to call. Use the Sandbox page for a reproducible local example.