{
  "version": "1.0.0",
  "project": {
    "name": "treetracker-wallet-api",
    "languages": [
      "dockerfile",
      "javascript",
      "json",
      "markdown",
      "pgsql",
      "shell",
      "sql",
      "yaml"
    ],
    "frameworks": [
      "Express",
      "Mocha",
      "Docker",
      "Docker Compose",
      "GitHub Actions"
    ],
    "description": "A Node.js/Express REST API for treetracker-wallet-api, a wallet service backed by PostgreSQL. It manages wallets, trust relationships between wallets, and token/bundle transfers (pending, fulfilled, declined, cancelled), using JWT (RS256) authentication and db-migrate for schema migrations.",
    "analyzedAt": "2026-09-03T10:37:53Z",
    "gitCommitHash": "e95c15a933e969eea4b4bdaab73e96bac95f5f8f"
  },
  "nodes": [
    {
      "id": "file:__tests__/auth.spec.js",
      "type": "file",
      "name": "auth.spec.js",
      "filePath": "__tests__/auth.spec.js",
      "summary": "Integration test verifying wallet login via POST /auth using seeded credentials, checking JWT token issuance.",
      "tags": [
        "test",
        "authentication",
        "integration-test"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:__tests__/bundle-transfer-cancel.spec.js",
      "type": "file",
      "name": "bundle-transfer-cancel.spec.js",
      "filePath": "__tests__/bundle-transfer-cancel.spec.js",
      "summary": "Tests creating a bundle token transfer between two wallets and then cancelling the pending transfer, verifying final state.",
      "tags": [
        "test",
        "transfer",
        "bundle-transfer",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/bundle-transfer-create-accept.spec.js",
      "type": "file",
      "name": "bundle-transfer-create-accept.spec.js",
      "filePath": "__tests__/bundle-transfer-create-accept.spec.js",
      "summary": "Tests creating a bundle token transfer and accepting it, verifying the transfer completes and tokens move to the receiving wallet.",
      "tags": [
        "test",
        "transfer",
        "bundle-transfer",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/bundle-transfer-decline.spec.js",
      "type": "file",
      "name": "bundle-transfer-decline.spec.js",
      "filePath": "__tests__/bundle-transfer-decline.spec.js",
      "summary": "Tests creating a bundle token transfer and declining it, verifying the transfer is cancelled and tokens remain with the sender.",
      "tags": [
        "test",
        "transfer",
        "bundle-transfer",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/fulfill-bundle-transfer-request.spec.js",
      "type": "file",
      "name": "fulfill-bundle-transfer-request.spec.js",
      "filePath": "__tests__/fulfill-bundle-transfer-request.spec.js",
      "summary": "Tests requesting a bundle of tokens from another wallet and fulfilling that request, verifying completion and final token ownership.",
      "tags": [
        "test",
        "transfer",
        "bundle-transfer",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/fulfill-explicity-transfer-request.spec.js",
      "type": "file",
      "name": "fulfill-explicity-transfer-request.spec.js",
      "filePath": "__tests__/fulfill-explicity-transfer-request.spec.js",
      "summary": "Tests requesting a specific token explicitly from another wallet and fulfilling that request, verifying completion.",
      "tags": [
        "test",
        "transfer",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/get-tokens.spec.js",
      "type": "file",
      "name": "get-tokens.spec.js",
      "filePath": "__tests__/get-tokens.spec.js",
      "summary": "Tests GET /tokens and GET /tokens/:id endpoints, verifying access permissions between wallets that do and do not own the tokens.",
      "tags": [
        "test",
        "tokens",
        "api-handler",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/integration/auth.spec.js",
      "type": "file",
      "name": "auth.spec.js",
      "filePath": "__tests__/integration/auth.spec.js",
      "summary": "Integration test verifying login via POST /auth using mock wallet data (Zaven fixture) rather than the shared seed module.",
      "tags": [
        "test",
        "authentication",
        "integration-test"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:__tests__/integration/bundle-transfer-decline.spec.js",
      "type": "file",
      "name": "bundle-transfer-decline.spec.js",
      "filePath": "__tests__/integration/bundle-transfer-decline.spec.js",
      "summary": "Integration test where one wallet requests to send a token to another wallet, which declines it, verifying the transfer is cancelled and token count is preserved.",
      "tags": [
        "test",
        "transfer",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/integration/testUtils.js",
      "type": "file",
      "name": "testUtils.js",
      "filePath": "__tests__/integration/testUtils.js",
      "summary": "Test helper module providing wallet registration, login, DB cleanup, token seeding, and pending-transfer creation utilities for integration tests.",
      "tags": [
        "test",
        "utility",
        "test-helper",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/pending-transfer-accepted.spec.js",
      "type": "file",
      "name": "pending-transfer-accepted.spec.js",
      "filePath": "__tests__/pending-transfer-accepted.spec.js",
      "summary": "Tests creating a pending token transfer and accepting it, verifying the transfer transitions to completed.",
      "tags": [
        "test",
        "transfer",
        "pending-transfer",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/pending-transfer-cancel.spec.js",
      "type": "file",
      "name": "pending-transfer-cancel.spec.js",
      "filePath": "__tests__/pending-transfer-cancel.spec.js",
      "summary": "Tests creating a pending token transfer and cancelling it, verifying the transfer is cancelled and the token is no longer pending.",
      "tags": [
        "test",
        "transfer",
        "pending-transfer",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/pending-transfer-decline.spec.js",
      "type": "file",
      "name": "pending-transfer-decline.spec.js",
      "filePath": "__tests__/pending-transfer-decline.spec.js",
      "summary": "Tests creating a pending token transfer and declining it, verifying the transfer is cancelled and the token stays with the sender.",
      "tags": [
        "test",
        "transfer",
        "pending-transfer",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/pending-transfer-wrong-wallet.spec.js",
      "type": "file",
      "name": "pending-transfer-wrong-wallet.spec.js",
      "filePath": "__tests__/pending-transfer-wrong-wallet.spec.js",
      "summary": "Tests that a wallet not party to a pending transfer is forbidden (403) from accepting it.",
      "tags": [
        "test",
        "transfer",
        "authorization",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/seed.js",
      "type": "file",
      "name": "seed.js",
      "filePath": "__tests__/seed.js",
      "summary": "Shared test fixture module that seeds wallets, tokens, api keys and trust relationships into the database for use across the legacy test suite, and provides clear/cleanup helpers.",
      "tags": [
        "test",
        "test-helper",
        "fixture",
        "database",
        "tested"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:__tests__/trust-relationship-api.spec.js",
      "type": "file",
      "name": "trust-relationship-api.spec.js",
      "filePath": "__tests__/trust-relationship-api.spec.js",
      "summary": "Tests the trust relationship management API endpoints (create, list, search, and request validation) via GET/POST /trust_relationships.",
      "tags": [
        "test",
        "trust-relationship",
        "api-handler",
        "integration-test"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:__tests__/trust-relationship-manage.spec.js",
      "type": "file",
      "name": "trust-relationship-manage.spec.js",
      "filePath": "__tests__/trust-relationship-manage.spec.js",
      "summary": "Tests the 'manage' trust relationship type, verifying a managing wallet can transfer tokens on behalf of a managed wallet.",
      "tags": [
        "test",
        "trust-relationship",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/trust-relationship-send-cancel.spec.js",
      "type": "file",
      "name": "trust-relationship-send-cancel.spec.js",
      "filePath": "__tests__/trust-relationship-send-cancel.spec.js",
      "summary": "Tests cancelling a previously requested 'send' trust relationship and verifies its state becomes cancelled.",
      "tags": [
        "test",
        "trust-relationship",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/trust-relationship-send-decline.spec.js",
      "type": "file",
      "name": "trust-relationship-send-decline.spec.js",
      "filePath": "__tests__/trust-relationship-send-decline.spec.js",
      "summary": "Tests requesting a 'send' trust relationship and then declining it, verifying the relationship ends up cancelled.",
      "tags": [
        "test",
        "trust-relationship",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/trust-relationship-send.spec.js",
      "type": "file",
      "name": "trust-relationship-send.spec.js",
      "filePath": "__tests__/trust-relationship-send.spec.js",
      "summary": "Tests the full 'send' trust relationship lifecycle: transfer fails without trust, request and accept trust, then transfer succeeds.",
      "tags": [
        "test",
        "trust-relationship",
        "transfer",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/wallet-get.spec.js",
      "type": "file",
      "name": "wallet-get.spec.js",
      "filePath": "__tests__/wallet-get.spec.js",
      "summary": "Tests GET wallet endpoints covering listing wallets of an account, lookup by name, managed-wallet access, and pagination via offset.",
      "tags": [
        "test",
        "wallet",
        "api-handler",
        "integration-test"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:__tests__/wallet-pending-transfers-summary.spec.js",
      "type": "file",
      "name": "wallet-pending-transfers-summary.spec.js",
      "filePath": "__tests__/wallet-pending-transfers-summary.spec.js",
      "summary": "Tests the wallet pending-transfers-summary endpoint across token and bundle transfers, and verifies authorization rules for managed wallets.",
      "tags": [
        "test",
        "wallet",
        "transfer",
        "integration-test"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:__tests__/wallet-post.spec.js",
      "type": "file",
      "name": "wallet-post.spec.js",
      "filePath": "__tests__/wallet-post.spec.js",
      "summary": "Tests POST wallet creation, including valid wallet names and validation failures for invalid length or invalid characters.",
      "tags": [
        "test",
        "wallet",
        "validation",
        "integration-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/app.js",
      "type": "file",
      "name": "app.js",
      "filePath": "server/app.js",
      "summary": "Configures the Express application: CORS in dev, content-type enforcement middleware, body parsing, route mounting, global error handling, and a catch-all version endpoint.",
      "tags": [
        "entry-point",
        "middleware",
        "api-handler",
        "express",
        "tested"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/app.spec.js",
      "type": "file",
      "name": "app.spec.js",
      "filePath": "server/app.spec.js",
      "summary": "Tests the app-level content-type middleware, verifying the version response on GET / and a 415 error for non-JSON POST requests.",
      "tags": [
        "test",
        "middleware",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/server.js",
      "type": "file",
      "name": "server.js",
      "filePath": "server/server.js",
      "summary": "Process bootstrap script that loads environment variables, applies logging setup, and starts the Express app listening on the configured port.",
      "tags": [
        "entry-point",
        "bootstrap",
        "server"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/setup.js",
      "type": "file",
      "name": "setup.js",
      "filePath": "server/setup.js",
      "summary": "Global setup module configuring the loglevel default level and optionally patching the logger to forward log messages to a remote logging endpoint.",
      "tags": [
        "configuration",
        "logging",
        "utility"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/utils/transfer-enum.js",
      "type": "file",
      "name": "transfer-enum.js",
      "filePath": "server/utils/transfer-enum.js",
      "summary": "Defines enumerations for transfer type (send, deduct, managed), transfer state (requested, pending, completed, cancelled, failed), and valid sort fields used throughout the transfer domain.",
      "tags": [
        "utility",
        "enum",
        "constants",
        "data-model",
        "tested"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/integration/testUtils.js:register",
      "type": "function",
      "name": "register",
      "filePath": "__tests__/integration/testUtils.js",
      "lineRange": [
        13,
        56
      ],
      "summary": "Hashes a user's password with a random salt, generates an API key, and inserts new wallet and api_key rows into the database.",
      "tags": [
        "test-helper",
        "authentication",
        "database"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:__tests__/integration/testUtils.js:registerAndLogin",
      "type": "function",
      "name": "registerAndLogin",
      "filePath": "__tests__/integration/testUtils.js",
      "lineRange": [
        62,
        68
      ],
      "summary": "Registers a new user and signs a JWT for it via JWTService, returning credentials usable in authenticated test requests.",
      "tags": [
        "test-helper",
        "authentication"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/integration/testUtils.js:clear",
      "type": "function",
      "name": "clear",
      "filePath": "__tests__/integration/testUtils.js",
      "lineRange": [
        70,
        78
      ],
      "summary": "Deletes all rows from api_key, transaction, token, wallet, wallet_trust and transfer tables to reset database state between integration tests.",
      "tags": [
        "test-helper",
        "database",
        "cleanup"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/integration/testUtils.js:addToken",
      "type": "function",
      "name": "addToken",
      "filePath": "__tests__/integration/testUtils.js",
      "lineRange": [
        83,
        93
      ],
      "summary": "Inserts a token row associated with a given wallet and asserts the inserted record has the expected id and wallet_id.",
      "tags": [
        "test-helper",
        "database",
        "tokens"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/integration/testUtils.js:sendAndPend",
      "type": "function",
      "name": "sendAndPend",
      "filePath": "__tests__/integration/testUtils.js",
      "lineRange": [
        98,
        115
      ],
      "summary": "Creates a pending 'send' transfer record between two wallets for a given bundle size, used to set up transfer-related test scenarios.",
      "tags": [
        "test-helper",
        "transfer",
        "database"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:__tests__/seed.js:seed",
      "type": "function",
      "name": "seed",
      "filePath": "__tests__/seed.js",
      "lineRange": [
        90,
        144
      ],
      "summary": "Inserts the shared api key, wallets, wallet_trust relationships, and initial tokens used as fixture data across the legacy test suite.",
      "tags": [
        "test-helper",
        "fixture",
        "database"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:__tests__/seed.js:addTokenToWallet",
      "type": "function",
      "name": "addTokenToWallet",
      "filePath": "__tests__/seed.js",
      "lineRange": [
        146,
        155
      ],
      "summary": "Inserts an additional token row assigned to a given wallet id, used to extend seed fixtures during individual tests.",
      "tags": [
        "test-helper",
        "database",
        "tokens"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/seed.js:clear",
      "type": "function",
      "name": "clear",
      "filePath": "__tests__/seed.js",
      "lineRange": [
        157,
        165
      ],
      "summary": "Deletes all rows from api_key, transaction, token, wallet, wallet_trust and transfer tables to reset database state after each test.",
      "tags": [
        "test-helper",
        "database",
        "cleanup"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/setup.js:_sendNextMessage",
      "type": "function",
      "name": "_sendNextMessage",
      "filePath": "server/setup.js",
      "lineRange": [
        14,
        38
      ],
      "summary": "Sends a log message to a remote HTTP logging endpoint via a POST request, writing any response data to stdout.",
      "tags": [
        "logging",
        "http",
        "utility"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/setup.js:loglevelServerSend",
      "type": "function",
      "name": "loglevelServerSend",
      "filePath": "server/setup.js",
      "lineRange": [
        39,
        69
      ],
      "summary": "Patches a loglevel logger instance's method factory so every log call is also forwarded to a remote server via _sendNextMessage.",
      "tags": [
        "logging",
        "configuration",
        "utility"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/handlers/authHandler.spec.js",
      "type": "file",
      "name": "authHandler.spec.js",
      "filePath": "server/handlers/authHandler.spec.js",
      "summary": "Mocha/Chai/Sinon test suite for the auth handler, exercising the POST /auth sign-in route through a real Express app with stubbed ApiKeyService, JWTService, and AuthService.",
      "tags": [
        "test",
        "api-handler",
        "authentication",
        "unit-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/handlers/authHandler/index.js",
      "type": "file",
      "name": "index.js",
      "filePath": "server/handlers/authHandler/index.js",
      "summary": "Express handler for the auth POST endpoint; validates credentials against a Joi schema, delegates sign-in to AuthService, and returns a JWT or throws a 401 HttpError.",
      "tags": [
        "api-handler",
        "authentication",
        "validation",
        "tested"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/handlers/authHandler/schemas.js",
      "type": "file",
      "name": "schemas.js",
      "filePath": "server/handlers/authHandler/schemas.js",
      "summary": "Joi validation schema for the auth sign-in request body, requiring a wallet identifier and password.",
      "tags": [
        "validation",
        "schema-definition",
        "authentication"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/handlers/eventHandler/index.js",
      "type": "file",
      "name": "index.js",
      "filePath": "server/handlers/eventHandler/index.js",
      "summary": "Express handler for GET /events; validates query parameters, fetches wallet events via EventService, and returns them as JSON.",
      "tags": [
        "api-handler",
        "events",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/handlers/eventHandler/schemas.js",
      "type": "file",
      "name": "schemas.js",
      "filePath": "server/handlers/eventHandler/schemas.js",
      "summary": "Joi validation schema for the events list query parameters (limit, since, wallet).",
      "tags": [
        "validation",
        "schema-definition",
        "events"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/handlers/tokenHandler.spec.js",
      "type": "file",
      "name": "tokenHandler.spec.js",
      "filePath": "server/handlers/tokenHandler.spec.js",
      "summary": "Test suite for the token handler covering GET /tokens, GET /tokens/:id, and GET /tokens/:id/transactions endpoints with stubbed TokenService and JWT/ApiKey auth.",
      "tags": [
        "test",
        "api-handler",
        "tokens",
        "unit-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/handlers/tokenHandler/index.js",
      "type": "file",
      "name": "index.js",
      "filePath": "server/handlers/tokenHandler/index.js",
      "summary": "Express handlers for token listing, single-token lookup, and token transaction history, each validating input via Joi and delegating to TokenService.",
      "tags": [
        "api-handler",
        "tokens",
        "validation",
        "tested"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/handlers/tokenHandler/schemas.js",
      "type": "file",
      "name": "schemas.js",
      "filePath": "server/handlers/tokenHandler/schemas.js",
      "summary": "Joi schemas for token endpoints: list query pagination, UUID token id, and transaction-history pagination.",
      "tags": [
        "validation",
        "schema-definition",
        "tokens"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/handlers/transferHandler.spec.js",
      "type": "file",
      "name": "transferHandler.spec.js",
      "filePath": "server/handlers/transferHandler.spec.js",
      "summary": "Extensive test suite for the transfer handler covering create, accept, decline, cancel, fulfill, list, and single-transfer-lookup endpoints with a stubbed TransferService.",
      "tags": [
        "test",
        "api-handler",
        "transfers",
        "unit-test"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/handlers/transferHandler/index.js",
      "type": "file",
      "name": "index.js",
      "filePath": "server/handlers/transferHandler/index.js",
      "summary": "Express handlers implementing the full transfer lifecycle (initiate, accept, decline, cancel, fulfill, list, get by id, list tokens), delegating business logic to TransferService.",
      "tags": [
        "api-handler",
        "transfers",
        "validation",
        "tested"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:server/handlers/authHandler/index.js:authPost",
      "type": "function",
      "name": "authPost",
      "filePath": "server/handlers/authHandler/index.js",
      "lineRange": [
        6,
        14
      ],
      "summary": "Validates the sign-in request body, calls AuthService.signIn with wallet and password, and responds with a JWT or a 401 error if credentials are invalid.",
      "tags": [
        "api-handler",
        "authentication",
        "validation"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/eventHandler/index.js:eventsGet",
      "type": "function",
      "name": "eventsGet",
      "filePath": "server/handlers/eventHandler/index.js",
      "lineRange": [
        5,
        20
      ],
      "summary": "Validates query params (limit, since, wallet), retrieves matching events for the logged-in wallet via EventService, and returns them in the response.",
      "tags": [
        "api-handler",
        "events",
        "query"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/tokenHandler/index.js:tokenGet",
      "type": "function",
      "name": "tokenGet",
      "filePath": "server/handlers/tokenHandler/index.js",
      "lineRange": [
        4,
        21
      ],
      "summary": "Validates the tokens list query, fetches tokens for a wallet via TokenService.getTokens, and returns them as JSON.",
      "tags": [
        "api-handler",
        "tokens",
        "query"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/tokenHandler/index.js:tokenGetById",
      "type": "function",
      "name": "tokenGetById",
      "filePath": "server/handlers/tokenHandler/index.js",
      "lineRange": [
        23,
        36
      ],
      "summary": "Validates the token id path param and returns a single token via TokenService.getById.",
      "tags": [
        "api-handler",
        "tokens"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/tokenHandler/index.js:tokenGetTransactionsById",
      "type": "function",
      "name": "tokenGetTransactionsById",
      "filePath": "server/handlers/tokenHandler/index.js",
      "lineRange": [
        38,
        59
      ],
      "summary": "Validates pagination query and token id, then returns the token's transaction history via TokenService.getTransactions.",
      "tags": [
        "api-handler",
        "tokens",
        "transactions"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/transferHandler/index.js:transferPost",
      "type": "function",
      "name": "transferPost",
      "filePath": "server/handlers/transferHandler/index.js",
      "lineRange": [
        10,
        30
      ],
      "summary": "Validates a transfer creation request and initiates a token or bundle transfer via TransferService.initiateTransfer, returning the created transfer with token count.",
      "tags": [
        "api-handler",
        "transfers"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/handlers/transferHandler/index.js:transferIdAcceptPost",
      "type": "function",
      "name": "transferIdAcceptPost",
      "filePath": "server/handlers/transferHandler/index.js",
      "lineRange": [
        32,
        44
      ],
      "summary": "Validates the transfer id and accepts a pending transfer via TransferService.acceptTransfer.",
      "tags": [
        "api-handler",
        "transfers"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/transferHandler/index.js:transferIdDeclinePost",
      "type": "function",
      "name": "transferIdDeclinePost",
      "filePath": "server/handlers/transferHandler/index.js",
      "lineRange": [
        46,
        58
      ],
      "summary": "Validates the transfer id and declines a pending transfer via TransferService.declineTransfer.",
      "tags": [
        "api-handler",
        "transfers"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/transferHandler/index.js:transferIdDelete",
      "type": "function",
      "name": "transferIdDelete",
      "filePath": "server/handlers/transferHandler/index.js",
      "lineRange": [
        60,
        72
      ],
      "summary": "Validates the transfer id and cancels a transfer via TransferService.cancelTransfer.",
      "tags": [
        "api-handler",
        "transfers"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/transferHandler/index.js:transferIdFulfill",
      "type": "function",
      "name": "transferIdFulfill",
      "filePath": "server/handlers/transferHandler/index.js",
      "lineRange": [
        74,
        92
      ],
      "summary": "Validates the transfer id and fulfillment payload, then fulfills a pending transfer via TransferService.fulfillTransfer.",
      "tags": [
        "api-handler",
        "transfers"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/transferHandler/index.js:transferGet",
      "type": "function",
      "name": "transferGet",
      "filePath": "server/handlers/transferHandler/index.js",
      "lineRange": [
        94,
        120
      ],
      "summary": "Validates list query filters and returns matching transfers via TransferService.getByFilter, mapped into the response shape.",
      "tags": [
        "api-handler",
        "transfers",
        "query"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/transferHandler/index.js:transferIdGet",
      "type": "function",
      "name": "transferIdGet",
      "filePath": "server/handlers/transferHandler/index.js",
      "lineRange": [
        122,
        141
      ],
      "summary": "Validates the transfer id and returns a single transfer via TransferService.getTransferById.",
      "tags": [
        "api-handler",
        "transfers"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/transferHandler/index.js:transferIdTokenGet",
      "type": "function",
      "name": "transferIdTokenGet",
      "filePath": "server/handlers/transferHandler/index.js",
      "lineRange": [
        143,
        167
      ],
      "summary": "Validates the transfer id and pagination, then returns the tokens attached to a transfer via TransferService.getTokensByTransferId.",
      "tags": [
        "api-handler",
        "transfers",
        "tokens"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/handlers/transferHandler/schemas.js",
      "type": "file",
      "name": "schemas.js",
      "filePath": "server/handlers/transferHandler/schemas.js",
      "summary": "Joi schemas for transfer endpoints, including a conditional schema distinguishing token-based transfers from bundle-based transfers, plus id, fulfillment, pagination, and filter query schemas.",
      "tags": [
        "validation",
        "schema-definition",
        "transfers"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses Joi.alternatives().conditional() to branch validation rules based on presence of a tokens field, distinguishing token transfers from bundle transfers."
    },
    {
      "id": "file:server/handlers/trustHandler.spec.js",
      "type": "file",
      "name": "trustHandler.spec.js",
      "filePath": "server/handlers/trustHandler.spec.js",
      "summary": "Test suite for the trust handler covering listing, creating, retrieving, accepting, declining, and cancelling trust relationships between wallets, with a stubbed TrustService.",
      "tags": [
        "test",
        "api-handler",
        "trust",
        "unit-test"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/handlers/trustHandler/index.js",
      "type": "file",
      "name": "index.js",
      "filePath": "server/handlers/trustHandler/index.js",
      "summary": "Express handlers managing wallet trust relationships: listing, creating trust requests, and accepting/declining/cancelling pending requests, delegating to TrustService.",
      "tags": [
        "api-handler",
        "trust",
        "validation",
        "tested"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/handlers/trustHandler/schemas.js",
      "type": "file",
      "name": "schemas.js",
      "filePath": "server/handlers/trustHandler/schemas.js",
      "summary": "Joi schemas for trust endpoints: relationship list filters/sorting, trust request creation (requester/requestee), and trust relationship id validation.",
      "tags": [
        "validation",
        "schema-definition",
        "trust"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/handlers/walletHandler.spec.js",
      "type": "file",
      "name": "walletHandler.spec.js",
      "filePath": "server/handlers/walletHandler.spec.js",
      "summary": "Test suite for the wallet handler covering wallet listing, lookup, trust relationships, creation, update, batch creation, batch transfer, and pending-transfer summary endpoints.",
      "tags": [
        "test",
        "api-handler",
        "wallets",
        "unit-test"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/handlers/walletHandler/index.js",
      "type": "file",
      "name": "index.js",
      "filePath": "server/handlers/walletHandler/index.js",
      "summary": "Express handlers for wallet management, including listing/lookup, creation/update, trust relationship queries, CSV-based batch wallet creation and batch transfer, and pending transfer summaries; delegates to WalletService and TrustService.",
      "tags": [
        "api-handler",
        "wallets",
        "validation",
        "batch-processing",
        "tested"
      ],
      "complexity": "complex",
      "languageNotes": "Uses csvtojson to parse uploaded CSV files for batch wallet creation and batch transfer endpoints, validating parsed rows with a dedicated Joi array schema."
    },
    {
      "id": "file:server/handlers/walletHandler/schemas.js",
      "type": "file",
      "name": "schemas.js",
      "filePath": "server/handlers/walletHandler/schemas.js",
      "summary": "Joi schemas for wallet endpoints: list filters/sorting, id validation, trust relationship filters, creation/update payloads, and CSV row validation for batch create and batch transfer.",
      "tags": [
        "validation",
        "schema-definition",
        "wallets"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/models/ApiKey.js",
      "type": "file",
      "name": "ApiKey.js",
      "filePath": "server/models/ApiKey.js",
      "summary": "Domain model wrapping API key lookups, delegating persistence access to ApiKeyRepository for a given session.",
      "tags": [
        "data-model",
        "authentication",
        "repository-pattern",
        "tested"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/models/Apikey.spec.js",
      "type": "file",
      "name": "Apikey.spec.js",
      "filePath": "server/models/Apikey.spec.js",
      "summary": "Unit test verifying that the ApiKey model's getByApiKey delegates correctly to a stubbed ApiKeyRepository.",
      "tags": [
        "test",
        "data-model",
        "unit-test"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/trustHandler/index.js:trustGet",
      "type": "function",
      "name": "trustGet",
      "filePath": "server/handlers/trustHandler/index.js",
      "lineRange": [
        8,
        42
      ],
      "summary": "Validates trust relationship list filters and returns matching relationships via TrustService.getAllTrustRelationships.",
      "tags": [
        "api-handler",
        "trust",
        "query"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/handlers/trustHandler/index.js:trustPost",
      "type": "function",
      "name": "trustPost",
      "filePath": "server/handlers/trustHandler/index.js",
      "lineRange": [
        44,
        64
      ],
      "summary": "Validates a trust request payload and creates a new trust relationship via TrustService.createTrustRelationship.",
      "tags": [
        "api-handler",
        "trust"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/trustHandler/index.js:trustRelationshipGetById",
      "type": "function",
      "name": "trustRelationshipGetById",
      "filePath": "server/handlers/trustHandler/index.js",
      "lineRange": [
        66,
        84
      ],
      "summary": "Validates the trust relationship id and returns a single relationship via TrustService.trustRelationshipGetById.",
      "tags": [
        "api-handler",
        "trust"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/trustHandler/index.js:trustRelationshipAccept",
      "type": "function",
      "name": "trustRelationshipAccept",
      "filePath": "server/handlers/trustHandler/index.js",
      "lineRange": [
        86,
        102
      ],
      "summary": "Validates the trust relationship id and accepts an incoming trust request via TrustService.acceptTrustRequestSentToMe.",
      "tags": [
        "api-handler",
        "trust"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/trustHandler/index.js:trustRelationshipDecline",
      "type": "function",
      "name": "trustRelationshipDecline",
      "filePath": "server/handlers/trustHandler/index.js",
      "lineRange": [
        104,
        120
      ],
      "summary": "Validates the trust relationship id and declines an incoming trust request via TrustService.declineTrustRequestSentToMe.",
      "tags": [
        "api-handler",
        "trust"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/trustHandler/index.js:trustRelationshipDelete",
      "type": "function",
      "name": "trustRelationshipDelete",
      "filePath": "server/handlers/trustHandler/index.js",
      "lineRange": [
        122,
        138
      ],
      "summary": "Validates the trust relationship id and cancels a trust request via TrustService.cancelTrustRequest.",
      "tags": [
        "api-handler",
        "trust"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/walletHandler/index.js:walletGet",
      "type": "function",
      "name": "walletGet",
      "filePath": "server/handlers/walletHandler/index.js",
      "lineRange": [
        18,
        56
      ],
      "summary": "Validates wallet list query filters and returns matching wallets via WalletService.getAllWallets.",
      "tags": [
        "api-handler",
        "wallets",
        "query"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/handlers/walletHandler/index.js:walletSingleGet",
      "type": "function",
      "name": "walletSingleGet",
      "filePath": "server/handlers/walletHandler/index.js",
      "lineRange": [
        58,
        71
      ],
      "summary": "Validates the wallet id and returns a single wallet via WalletService.getWallet.",
      "tags": [
        "api-handler",
        "wallets"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/walletHandler/index.js:walletGetTrustRelationships",
      "type": "function",
      "name": "walletGetTrustRelationships",
      "filePath": "server/handlers/walletHandler/index.js",
      "lineRange": [
        73,
        138
      ],
      "summary": "Validates wallet id and filter query, resolves the wallet via WalletService, then returns its trust relationships via TrustService.getTrustRelationships.",
      "tags": [
        "api-handler",
        "wallets",
        "trust"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:server/handlers/walletHandler/index.js:walletPost",
      "type": "function",
      "name": "walletPost",
      "filePath": "server/handlers/walletHandler/index.js",
      "lineRange": [
        140,
        155
      ],
      "summary": "Validates a wallet creation payload and creates a new wallet via WalletService.createWallet.",
      "tags": [
        "api-handler",
        "wallets"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/walletHandler/index.js:walletPatch",
      "type": "function",
      "name": "walletPatch",
      "filePath": "server/handlers/walletHandler/index.js",
      "lineRange": [
        157,
        183
      ],
      "summary": "Validates the wallet id and update payload, then updates a wallet via WalletService.updateWallet.",
      "tags": [
        "api-handler",
        "wallets"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/handlers/walletHandler/index.js:walletBatchCreate",
      "type": "function",
      "name": "walletBatchCreate",
      "filePath": "server/handlers/walletHandler/index.js",
      "lineRange": [
        185,
        210
      ],
      "summary": "Parses an uploaded CSV of wallet rows, validates them, and batch-creates wallets via WalletService.batchCreateWallet.",
      "tags": [
        "api-handler",
        "wallets",
        "batch-processing"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/handlers/walletHandler/index.js:walletBatchTransfer",
      "type": "function",
      "name": "walletBatchTransfer",
      "filePath": "server/handlers/walletHandler/index.js",
      "lineRange": [
        212,
        240
      ],
      "summary": "Parses an uploaded CSV of transfer rows, validates them, and performs a batch token transfer via WalletService.batchTransferWallet.",
      "tags": [
        "api-handler",
        "wallets",
        "batch-processing",
        "transfers"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/handlers/walletHandler/index.js:walletGetPendingTransfersSummary",
      "type": "function",
      "name": "walletGetPendingTransfersSummary",
      "filePath": "server/handlers/walletHandler/index.js",
      "lineRange": [
        242,
        257
      ],
      "summary": "Validates the wallet id and returns a summary of pending transfers via WalletService.getPendingTransfersSummary.",
      "tags": [
        "api-handler",
        "wallets",
        "transfers"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:server/models/ApiKey.js:ApiKey",
      "type": "class",
      "name": "ApiKey",
      "filePath": "server/models/ApiKey.js",
      "lineRange": [
        3,
        11
      ],
      "summary": "Thin model class that constructs an ApiKeyRepository for a session and exposes getByApiKey to look up an API key record.",
      "tags": [
        "data-model",
        "authentication",
        "repository-pattern"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/repositories/ApiKeyRepository.js",
      "type": "file",
      "name": "ApiKeyRepository.js",
      "filePath": "server/repositories/ApiKeyRepository.js",
      "summary": "Repository providing database access to the api_key table, used to look up API key records by key value.",
      "tags": [
        "repository",
        "database",
        "data-access",
        "api-key",
        "tested"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/routes/authRouter.js",
      "type": "file",
      "name": "authRouter.js",
      "filePath": "server/routes/authRouter.js",
      "summary": "Express router mounting the /auth endpoint, wrapping the login handler with API key middleware.",
      "tags": [
        "router",
        "api-handler",
        "middleware",
        "express",
        "authentication"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/routes/eventRouter.js",
      "type": "file",
      "name": "eventRouter.js",
      "filePath": "server/routes/eventRouter.js",
      "summary": "Express router mounting the /events endpoint, protected by API key and JWT verification middleware.",
      "tags": [
        "router",
        "api-handler",
        "middleware",
        "express",
        "events"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/routes/index.js",
      "type": "file",
      "name": "index.js",
      "filePath": "server/routes/index.js",
      "summary": "Aggregates and exports all Express sub-routers (auth, token, transfer, trust, wallet, event) as a single array for mounting in the app.",
      "tags": [
        "entry-point",
        "barrel",
        "router",
        "express"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/routes/tokenRouter.js",
      "type": "file",
      "name": "tokenRouter.js",
      "filePath": "server/routes/tokenRouter.js",
      "summary": "Express router mounting the /tokens endpoint, exposing token listing, lookup by id, and transaction history handlers behind auth middleware.",
      "tags": [
        "router",
        "api-handler",
        "middleware",
        "express",
        "tokens"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/routes/transferRouter.js",
      "type": "file",
      "name": "transferRouter.js",
      "filePath": "server/routes/transferRouter.js",
      "summary": "Express router mounting the /transfers endpoint, exposing create, accept, decline, delete, fulfill, and lookup handlers for wallet-to-wallet transfers.",
      "tags": [
        "router",
        "api-handler",
        "middleware",
        "express",
        "transfers"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/routes/trustRouter.js",
      "type": "file",
      "name": "trustRouter.js",
      "filePath": "server/routes/trustRouter.js",
      "summary": "Express router mounting the /trust_relationships endpoint, exposing create, accept, decline, delete, and lookup handlers for wallet trust relationships.",
      "tags": [
        "router",
        "api-handler",
        "middleware",
        "express",
        "trust-relationships"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/routes/walletRouter.js",
      "type": "file",
      "name": "walletRouter.js",
      "filePath": "server/routes/walletRouter.js",
      "summary": "Express router mounting the /wallets endpoint, configuring multer file uploads for CSV batch operations and image patches, and exposing wallet CRUD, trust relationship, and pending transfer handlers.",
      "tags": [
        "router",
        "api-handler",
        "middleware",
        "express",
        "file-upload"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses multer with custom fileFilter callbacks to restrict uploads to CSV and image mimetypes before delegating to wallet handlers."
    },
    {
      "id": "file:server/services/ApiKeyService.js",
      "type": "file",
      "name": "ApiKeyService.js",
      "filePath": "server/services/ApiKeyService.js",
      "summary": "Service that validates incoming API keys, checking for existence, deprecation, and endpoint-specific permission (e.g. batch-create access).",
      "tags": [
        "service",
        "authentication",
        "validation",
        "api-key",
        "tested"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/services/ApiKeyService.spec.js",
      "type": "file",
      "name": "ApiKeyService.spec.js",
      "filePath": "server/services/ApiKeyService.spec.js",
      "summary": "Unit tests for ApiKeyService covering missing key, deprecated key, and permission-restricted endpoint scenarios.",
      "tags": [
        "test",
        "service",
        "api-key",
        "unit-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/services/AuthService.js",
      "type": "file",
      "name": "AuthService.js",
      "filePath": "server/services/AuthService.js",
      "summary": "Service handling wallet login by verifying a hashed password, issuing a JWT on success, and logging an authentication event.",
      "tags": [
        "service",
        "authentication",
        "login",
        "jwt",
        "tested"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/services/AuthService.spec.js",
      "type": "file",
      "name": "AuthService.spec.js",
      "filePath": "server/services/AuthService.spec.js",
      "summary": "Unit tests for AuthService.signIn covering successful login, wrong password, and nonexistent wallet scenarios.",
      "tags": [
        "test",
        "service",
        "authentication",
        "unit-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/services/HashService.js",
      "type": "file",
      "name": "HashService.js",
      "filePath": "server/services/HashService.js",
      "summary": "Utility service providing SHA-512 HMAC password hashing used for credential verification.",
      "tags": [
        "service",
        "cryptography",
        "hashing",
        "utility",
        "tested"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/services/HashService.spec.js",
      "type": "file",
      "name": "HashService.spec.js",
      "filePath": "server/services/HashService.spec.js",
      "summary": "Unit tests verifying HashService.sha512 produces expected hash output for a given password and salt.",
      "tags": [
        "test",
        "service",
        "cryptography",
        "unit-test"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/services/JWTService.js",
      "type": "file",
      "name": "JWTService.js",
      "filePath": "server/services/JWTService.js",
      "summary": "Service for signing and verifying RS256 JSON Web Tokens used for wallet authentication, reading key material from environment variables.",
      "tags": [
        "service",
        "authentication",
        "jwt",
        "security",
        "tested"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses RS256 asymmetric signing with separate private/public keys loaded from environment variables at module load time."
    },
    {
      "id": "file:server/services/JWTService.spec.js",
      "type": "file",
      "name": "JWTService.spec.js",
      "filePath": "server/services/JWTService.spec.js",
      "summary": "Unit test verifying JWTService token signing and verification round-trip.",
      "tags": [
        "test",
        "service",
        "jwt",
        "unit-test"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/utils/utils.js",
      "type": "file",
      "name": "utils.js",
      "filePath": "server/utils/utils.js",
      "summary": "Shared Express utilities: an async handler wrapper, a global error handler mapping HttpError and ValidationError to HTTP responses, and API key / JWT verification middleware factories.",
      "tags": [
        "utility",
        "middleware",
        "error-handling",
        "express",
        "tested"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/utils/utils.spec.js",
      "type": "file",
      "name": "utils.spec.js",
      "filePath": "server/utils/utils.spec.js",
      "summary": "Unit tests for the utils module covering handlerWrapper async error propagation, errorHandler response formatting, and the apiKeyHandler/verifyJWTHandler middleware.",
      "tags": [
        "test",
        "utility",
        "middleware",
        "unit-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:server/repositories/ApiKeyRepository.js:ApiKeyRepository",
      "type": "class",
      "name": "ApiKeyRepository",
      "filePath": "server/repositories/ApiKeyRepository.js",
      "lineRange": [
        1,
        17
      ],
      "summary": "Repository class wrapping database queries against the api_key table, exposing lookup by key value.",
      "tags": [
        "repository",
        "database",
        "data-access"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:server/services/ApiKeyService.js:ApiKeyService",
      "type": "class",
      "name": "ApiKeyService",
      "filePath": "server/services/ApiKeyService.js",
      "lineRange": [
        5,
        28
      ],
      "summary": "Validates an API key on each protected request, throwing HttpError for missing, invalid, deprecated, or insufficiently privileged keys.",
      "tags": [
        "service",
        "validation",
        "authentication"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:server/services/AuthService.js:AuthService",
      "type": "class",
      "name": "AuthService",
      "filePath": "server/services/AuthService.js",
      "lineRange": [
        7,
        28
      ],
      "summary": "Static service class implementing wallet sign-in: verifies password hash, issues a JWT, and records a login event.",
      "tags": [
        "service",
        "authentication",
        "login"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:server/services/HashService.js:HashService",
      "type": "class",
      "name": "HashService",
      "filePath": "server/services/HashService.js",
      "lineRange": [
        3,
        13
      ],
      "summary": "Static service class computing an HMAC SHA-512 hash of a password using a provided salt.",
      "tags": [
        "service",
        "cryptography",
        "hashing"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:server/services/JWTService.js:JWTService",
      "type": "class",
      "name": "JWTService",
      "filePath": "server/services/JWTService.js",
      "lineRange": [
        25,
        60
      ],
      "summary": "Static service class for signing wallet payloads into RS256 JWTs and verifying/decoding bearer tokens from request headers.",
      "tags": [
        "service",
        "jwt",
        "authentication",
        "security"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/utils/utils.js:handlerWrapper",
      "type": "function",
      "name": "handlerWrapper",
      "filePath": "server/utils/utils.js",
      "lineRange": [
        25,
        32
      ],
      "summary": "Wraps an async Express handler so thrown errors or rejected promises are forwarded to Express's next() error handler.",
      "tags": [
        "middleware",
        "error-handling",
        "utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/utils/utils.js:errorHandler",
      "type": "function",
      "name": "errorHandler",
      "filePath": "server/utils/utils.js",
      "lineRange": [
        34,
        52
      ],
      "summary": "Express global error-handling middleware mapping HttpError and Joi ValidationError instances to structured JSON error responses.",
      "tags": [
        "middleware",
        "error-handling",
        "express"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/utils/utils.js:apiKeyHandler",
      "type": "function",
      "name": "apiKeyHandler",
      "filePath": "server/utils/utils.js",
      "lineRange": [
        54,
        59
      ],
      "summary": "Express middleware that validates the treetracker-api-key header via ApiKeyService before allowing the request to proceed.",
      "tags": [
        "middleware",
        "authentication",
        "api-key"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/utils/utils.js:verifyJWTHandler",
      "type": "function",
      "name": "verifyJWTHandler",
      "filePath": "server/utils/utils.js",
      "lineRange": [
        61,
        65
      ],
      "summary": "Express middleware that verifies the request's JWT and attaches the resolved wallet_id to the request object.",
      "tags": [
        "middleware",
        "authentication",
        "jwt"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:__tests__/seed.spec.js",
      "type": "file",
      "name": "seed.spec.js",
      "filePath": "__tests__/seed.spec.js",
      "summary": "Integration test verifying that the database seed script populates expected fixture data: an API key, a claimable token, wallet C, a manage-trust relationship, and token B.",
      "tags": [
        "test",
        "integration-test",
        "seed-data",
        "database"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:__tests__/session.spec.js",
      "type": "file",
      "name": "session.spec.js",
      "filePath": "__tests__/session.spec.js",
      "summary": "Integration test for the database Session wrapper, covering normal connections and transaction commit, rollback, and nested transaction behavior against a real database.",
      "tags": [
        "test",
        "integration-test",
        "database",
        "transaction"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:config.js",
      "type": "config",
      "name": "config.js",
      "filePath": "config/config.js",
      "summary": "Central runtime configuration module exposing the database connection string from the environment plus static Sentry DSN and treetracker map/wallet URL settings.",
      "tags": [
        "configuration",
        "environment",
        "database"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/create/create-wallet.js",
      "type": "file",
      "name": "create-wallet.js",
      "filePath": "scripts/create/create-wallet.js",
      "summary": "Standalone CLI script that creates a new wallet with a randomly generated password and API key, salting and hashing the password with SHA-512 before inserting into the wallet and api_key tables inside a knex transaction.",
      "tags": [
        "cli-script",
        "wallet",
        "provisioning",
        "database"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses an IIFE with try/catch around a raw knex transaction to atomically insert an API key and wallet, committing or rolling back manually."
    },
    {
      "id": "file:server/infra/database/Session.js",
      "type": "file",
      "name": "Session.js",
      "filePath": "server/infra/database/Session.js",
      "summary": "Wraps a knex database connection to represent the current transaction session, allowing callers to begin, commit, or rollback a transaction and share that transactional state across repositories.",
      "tags": [
        "database",
        "transaction",
        "session-management",
        "infrastructure",
        "tested"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:server/infra/database/Session.js:Session",
      "type": "class",
      "name": "Session",
      "filePath": "server/infra/database/Session.js",
      "lineRange": [
        6,
        44
      ],
      "summary": "Encapsulates an optional knex transaction handle, exposing getDB, isTransactionInProgress, beginTransaction, commitTransaction, and rollbackTransaction so repositories can operate transactionally without knowing knex directly.",
      "tags": [
        "database",
        "transaction",
        "session-management"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/infra/database/Session.spec.js",
      "type": "file",
      "name": "Session.spec.js",
      "filePath": "server/infra/database/Session.spec.js",
      "summary": "Unit test for the Session class verifying getDB returns the raw knex connection and that committing or rolling back a transaction before one is started throws an error.",
      "tags": [
        "test",
        "unit-test",
        "database",
        "transaction"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/infra/database/knex.js",
      "type": "file",
      "name": "knex.js",
      "filePath": "server/infra/database/knex.js",
      "summary": "Initializes and exports the shared knex Postgres client, validating the connection string with Joi, setting SERIALIZABLE transaction isolation on each new pooled connection, and optionally applying a configured database schema search path.",
      "tags": [
        "database",
        "knex",
        "configuration",
        "infrastructure"
      ],
      "complexity": "moderate",
      "languageNotes": "Configures pool.afterCreate to force SERIALIZABLE isolation level on every new pooled connection, which affects concurrency and retry behavior across the whole app."
    },
    {
      "id": "file:server/models/Token.spec.js",
      "type": "file",
      "name": "Token.spec.js",
      "filePath": "server/models/Token.spec.js",
      "summary": "Unit test suite for the Token model, covering token counting by wallet, bundle token retrieval, completing/pending/cancelling transfers, ownership checks (belongsTo, beAbleToTransfer), and fetching transactions and owned tokens.",
      "tags": [
        "test",
        "unit-test",
        "token",
        "transfer"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/repositories/ApiKeyRepository.spec.js",
      "type": "file",
      "name": "ApiKeyRepository.spec.js",
      "filePath": "server/repositories/ApiKeyRepository.spec.js",
      "summary": "Unit test for ApiKeyRepository verifying that looking up a record by API key value returns the expected row via the underlying knex query.",
      "tags": [
        "test",
        "unit-test",
        "api-key",
        "repository"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/repositories/BaseRepository.spec.js",
      "type": "file",
      "name": "BaseRepository.spec.js",
      "filePath": "server/repositories/BaseRepository.spec.js",
      "summary": "Extensive unit test suite for BaseRepository covering getById, getByFilter with limit/offset, complex nested and/or filter clause building, update, and create operations against a mocked knex query builder.",
      "tags": [
        "test",
        "unit-test",
        "repository",
        "query-builder"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/repositories/TokenRepository.spec.js",
      "type": "file",
      "name": "TokenRepository.spec.js",
      "filePath": "server/repositories/TokenRepository.spec.js",
      "summary": "Unit test for TokenRepository verifying getByTransferId retrieves tokens associated with a given transfer.",
      "tags": [
        "test",
        "unit-test",
        "token",
        "repository"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/repositories/TransactionRepository.js",
      "type": "file",
      "name": "TransactionRepository.js",
      "filePath": "server/repositories/TransactionRepository.js",
      "summary": "Repository for the transaction table extending BaseRepository, providing getByFilter which joins source and destination wallet names into transaction records with optional limit/offset pagination.",
      "tags": [
        "repository",
        "database",
        "transaction",
        "wallet",
        "tested"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:server/repositories/TransactionRepository.js:TransactionRepository",
      "type": "class",
      "name": "TransactionRepository",
      "filePath": "server/repositories/TransactionRepository.js",
      "lineRange": [
        3,
        43
      ],
      "summary": "Extends BaseRepository to query the transaction table, left-joining wallet names for sender and receiver and applying filter and pagination logic via getByFilter.",
      "tags": [
        "repository",
        "database",
        "transaction"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/repositories/TransactionRepository.spec.js",
      "type": "file",
      "name": "TransactionRepository.spec.js",
      "filePath": "server/repositories/TransactionRepository.spec.js",
      "summary": "Unit test for TransactionRepository verifying getByFilter builds the expected query against the transaction table.",
      "tags": [
        "test",
        "unit-test",
        "transaction",
        "repository"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/repositories/TransferRepository.spec.js",
      "type": "file",
      "name": "TransferRepository.spec.js",
      "filePath": "server/repositories/TransferRepository.spec.js",
      "summary": "Unit test suite for TransferRepository covering create, update, getByFilter, and getPendingTransfers operations against a mocked knex query builder.",
      "tags": [
        "test",
        "unit-test",
        "transfer",
        "repository"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/repositories/TrustRepository.spec.js",
      "type": "file",
      "name": "TrustRepository.spec.js",
      "filePath": "server/repositories/TrustRepository.spec.js",
      "summary": "Unit test suite for TrustRepository covering getByOriginatorId, getTrustedByOriginatorId, getByTargetId, and getByFilter queries for wallet trust relationships.",
      "tags": [
        "test",
        "unit-test",
        "trust",
        "repository"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/repositories/WalletRepository.spec.js",
      "type": "file",
      "name": "WalletRepository.spec.js",
      "filePath": "server/repositories/WalletRepository.spec.js",
      "summary": "Unit test suite for WalletRepository covering getByName, getById (including not-found cases), and getAllWallets with and without a total count.",
      "tags": [
        "test",
        "unit-test",
        "wallet",
        "repository"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/infra/aws/s3.js",
      "type": "file",
      "name": "s3.js",
      "filePath": "server/infra/aws/s3.js",
      "summary": "Instantiates and exports a singleton AWS S3 client configured from environment credentials and region, used by upload helpers elsewhere in the app.",
      "tags": [
        "aws",
        "s3",
        "singleton",
        "infrastructure"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/models/Event.js",
      "type": "file",
      "name": "Event.js",
      "filePath": "server/models/Event.js",
      "summary": "Data model wrapping EventRepository to fetch wallet events with optional filters and to persist new audit events.",
      "tags": [
        "data-model",
        "event",
        "audit-log"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/models/Token.js",
      "type": "file",
      "name": "Token.js",
      "filePath": "server/models/Token.js",
      "summary": "Core token data model implementing the token/bundle transfer state machine: pending, completing, and cancelling transfers, plus lookups by owner, bundle, and transfer id.",
      "tags": [
        "data-model",
        "token",
        "state-machine",
        "transaction",
        "tested"
      ],
      "complexity": "complex",
      "languageNotes": "Uses Joi.assert for runtime validation of transfer ids before delegating to TokenRepository and TransactionRepository."
    },
    {
      "id": "file:server/repositories/EventRepository.js",
      "type": "file",
      "name": "EventRepository.js",
      "filePath": "server/repositories/EventRepository.js",
      "summary": "Repository for the wallet_event table, extending BaseRepository to run filtered, optionally limited queries against wallet events.",
      "tags": [
        "repository",
        "database",
        "event"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/services/EventService.js",
      "type": "file",
      "name": "EventService.js",
      "filePath": "server/services/EventService.js",
      "summary": "Service layer for listing and logging wallet events, enforcing control-over checks via WalletService before returning another wallet's events.",
      "tags": [
        "service",
        "event",
        "authorization",
        "audit-log"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/services/S3Service.js",
      "type": "file",
      "name": "S3Service.js",
      "filePath": "server/services/S3Service.js",
      "summary": "Uploads a file buffer to S3 using PutObjectCommand and returns the resulting public object URL.",
      "tags": [
        "service",
        "aws",
        "s3",
        "file-upload"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/services/TokenService.js",
      "type": "file",
      "name": "TokenService.js",
      "filePath": "server/services/TokenService.js",
      "summary": "Service layer for token queries: listing a wallet's tokens, fetching by id with ownership checks, transaction history, and transfer-related token counts.",
      "tags": [
        "service",
        "token",
        "authorization",
        "tested"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/services/TokenService.spec.js",
      "type": "file",
      "name": "TokenService.spec.js",
      "filePath": "server/services/TokenService.spec.js",
      "summary": "Unit tests for TokenService covering token retrieval, ownership authorization, and transaction lookups against mocked Token and Wallet models.",
      "tags": [
        "test",
        "token",
        "unit-test"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/services/TransferService.js",
      "type": "file",
      "name": "TransferService.js",
      "filePath": "server/services/TransferService.js",
      "summary": "Core service orchestrating the transfer lifecycle (initiate, accept, decline, cancel, fulfill) across wallets, tokens, and bundles, wrapping each operation in a database transaction and logging events for each state change.",
      "tags": [
        "service",
        "transfer",
        "transaction",
        "state-machine",
        "tested"
      ],
      "complexity": "complex",
      "languageNotes": "Every state-changing method follows begin/commit/rollback transaction boilerplate around calls to WalletService, TokenService, and EventService."
    },
    {
      "id": "file:server/services/TransferService.spec.js",
      "type": "file",
      "name": "TransferService.spec.js",
      "filePath": "server/services/TransferService.spec.js",
      "summary": "Large unit test suite for TransferService covering initiate, accept, decline, cancel, and fulfill transfer flows with mocked Transfer, Token, Wallet, and Event dependencies.",
      "tags": [
        "test",
        "transfer",
        "unit-test"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/services/TrustService.js",
      "type": "file",
      "name": "TrustService.js",
      "filePath": "server/services/TrustService.js",
      "summary": "Service layer managing trust relationships between wallets: requesting, accepting, declining, and cancelling trust, plus aggregating trust relationships across a wallet's sub-wallets.",
      "tags": [
        "service",
        "trust",
        "authorization",
        "state-machine",
        "tested"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/services/TrustService.spec.js",
      "type": "file",
      "name": "TrustService.spec.js",
      "filePath": "server/services/TrustService.spec.js",
      "summary": "Unit test suite for TrustService covering trust relationship creation, acceptance, decline, and cancellation flows with mocked Trust and Wallet models.",
      "tags": [
        "test",
        "trust",
        "unit-test"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/services/WalletService.js",
      "type": "file",
      "name": "WalletService.js",
      "filePath": "server/services/WalletService.js",
      "summary": "Central wallet service handling wallet CRUD, sub-wallet lookups, control-over authorization checks, batch wallet creation/transfer from CSV, and map config synchronization.",
      "tags": [
        "service",
        "wallet",
        "authorization",
        "batch-processing",
        "tested"
      ],
      "complexity": "complex",
      "languageNotes": "batchCreateWallet and batchTransferWallet process CSV-derived wallet lists with Promise.allSettled and per-row error aggregation."
    },
    {
      "id": "file:server/services/WalletService.spec.js",
      "type": "file",
      "name": "WalletService.spec.js",
      "filePath": "server/services/WalletService.spec.js",
      "summary": "Unit test suite for WalletService covering wallet retrieval, creation, and authorization checks with mocked Wallet, Token, and Event models.",
      "tags": [
        "test",
        "wallet",
        "unit-test"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/utils/event-enum.js",
      "type": "file",
      "name": "event-enum.js",
      "filePath": "server/utils/event-enum.js",
      "summary": "Defines the enumerated set of wallet event type strings (auth, transfer, trust, wallet) used when logging audit events across services.",
      "tags": [
        "enum",
        "constants",
        "event"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:server/models/Event.js:Event",
      "type": "class",
      "name": "Event",
      "filePath": "server/models/Event.js",
      "lineRange": [
        6,
        45
      ],
      "summary": "Model class wrapping EventRepository to list filtered wallet events and create new event records.",
      "tags": [
        "data-model",
        "event"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:server/models/Token.js:Token",
      "type": "class",
      "name": "Token",
      "filePath": "server/models/Token.js",
      "lineRange": [
        6,
        165
      ],
      "summary": "Model class implementing token counting, bundle lookup, and the pending/complete/cancel transfer state transitions backed by TokenRepository and TransactionRepository.",
      "tags": [
        "data-model",
        "token",
        "state-machine"
      ],
      "complexity": "complex"
    },
    {
      "id": "class:server/repositories/EventRepository.js:EventRepository",
      "type": "class",
      "name": "EventRepository",
      "filePath": "server/repositories/EventRepository.js",
      "lineRange": [
        3,
        23
      ],
      "summary": "Repository class for the wallet_event table providing filtered, optionally limited event queries.",
      "tags": [
        "repository",
        "database",
        "event"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:server/services/EventService.js:EventService",
      "type": "class",
      "name": "EventService",
      "filePath": "server/services/EventService.js",
      "lineRange": [
        5,
        38
      ],
      "summary": "Service class exposing getAllEvents and logEvent, enforcing wallet control-over authorization before returning another wallet's events.",
      "tags": [
        "service",
        "event",
        "authorization"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/services/S3Service.js:upload",
      "type": "function",
      "name": "upload",
      "filePath": "server/services/S3Service.js",
      "lineRange": [
        4,
        18
      ],
      "summary": "Uploads a file buffer to the configured S3 bucket via PutObjectCommand and returns the resulting object's public URL.",
      "tags": [
        "utility",
        "aws",
        "file-upload"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:server/services/TokenService.js:TokenService",
      "type": "class",
      "name": "TokenService",
      "filePath": "server/services/TokenService.js",
      "lineRange": [
        6,
        93
      ],
      "summary": "Service class for token retrieval, ownership-checked lookups, transaction history, and transfer-related token counts.",
      "tags": [
        "service",
        "token",
        "authorization"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:server/services/TransferService.js:TransferService",
      "type": "class",
      "name": "TransferService",
      "filePath": "server/services/TransferService.js",
      "lineRange": [
        10,
        482
      ],
      "summary": "Service class orchestrating the full transfer lifecycle (initiate, accept, decline, cancel, fulfill) with transactional consistency and event logging at each state change.",
      "tags": [
        "service",
        "transfer",
        "transaction",
        "state-machine"
      ],
      "complexity": "complex"
    },
    {
      "id": "class:server/services/TrustService.js:TrustService",
      "type": "class",
      "name": "TrustService",
      "filePath": "server/services/TrustService.js",
      "lineRange": [
        9,
        253
      ],
      "summary": "Service class managing the trust relationship lifecycle between wallets, including aggregation of trust relationships across sub-wallets.",
      "tags": [
        "service",
        "trust",
        "authorization",
        "state-machine"
      ],
      "complexity": "complex"
    },
    {
      "id": "class:server/services/WalletService.js:WalletService",
      "type": "class",
      "name": "WalletService",
      "filePath": "server/services/WalletService.js",
      "lineRange": [
        15,
        533
      ],
      "summary": "Central service class for wallet CRUD, sub-wallet and control-over queries, batch wallet creation and transfer from CSV uploads, and external map config sync.",
      "tags": [
        "service",
        "wallet",
        "authorization",
        "batch-processing"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:__tests__/e2e/__tests__/authentication.test.js",
      "type": "file",
      "name": "authentication.test.js",
      "filePath": "__tests__/e2e/__tests__/authentication.test.js",
      "summary": "End-to-end test suite for the POST /auth login endpoint, covering login by wallet name and login by wallet ID.",
      "tags": [
        "test",
        "e2e",
        "authentication",
        "regression"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:__tests__/e2e/__tests__/sendTokens/managingWalletMovesTokensBetweenWallets.test.js",
      "type": "file",
      "name": "managingWalletMovesTokensBetweenWallets.test.js",
      "filePath": "__tests__/e2e/__tests__/sendTokens/managingWalletMovesTokensBetweenWallets.test.js",
      "summary": "End-to-end test verifying a managing wallet can move tokens between two wallets it manages, exercising trust acceptance and transfer completion.",
      "tags": [
        "test",
        "e2e",
        "token-transfer",
        "managing-wallet",
        "trust-relationship"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithTrustRelationship.test.js",
      "type": "file",
      "name": "sendTokensWithTrustRelationship.test.js",
      "filePath": "__tests__/e2e/__tests__/sendTokens/sendTokensWithTrustRelationship.test.js",
      "summary": "End-to-end test verifying that a token transfer between two wallets with an established trust relationship completes automatically without manual acceptance.",
      "tags": [
        "test",
        "e2e",
        "token-transfer",
        "trust-relationship"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithoutTrustRelationship.test.js",
      "type": "file",
      "name": "sendTokensWithoutTrustRelationship.test.js",
      "filePath": "__tests__/e2e/__tests__/sendTokens/sendTokensWithoutTrustRelationship.test.js",
      "summary": "End-to-end test verifying the pending-transfer flow when no trust relationship exists, covering both acceptance and decline of a token transfer.",
      "tags": [
        "test",
        "e2e",
        "token-transfer",
        "pending-transfer"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/e2e/__tests__/wallets.test.js",
      "type": "file",
      "name": "wallets.test.js",
      "filePath": "__tests__/e2e/__tests__/wallets.test.js",
      "summary": "End-to-end test suite for the wallets API, verifying GET /wallets returns 200 and that a new managed wallet is created and appears in the list.",
      "tags": [
        "test",
        "e2e",
        "wallet",
        "regression"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/e2e/config.js",
      "type": "file",
      "name": "config.js",
      "filePath": "__tests__/e2e/config.js",
      "summary": "Shared E2E test configuration that builds a supertest client against either a local app instance or a remote k8s environment, and re-exports HTTP helpers, response-status codes, the assertion library, and seed data for use across the test suite.",
      "tags": [
        "test-utility",
        "http-client",
        "e2e",
        "configuration"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:__tests__/e2e/database/knex.js",
      "type": "file",
      "name": "knex.js",
      "filePath": "__tests__/e2e/database/knex.js",
      "summary": "Configures and exports a raw Knex/PostgreSQL connection, built from environment variables, used by E2E tests to query the database directly.",
      "tags": [
        "database",
        "configuration",
        "knex",
        "e2e-utility"
      ],
      "complexity": "simple",
      "languageNotes": "Connects with the pg client and applies a configurable search path/schema, separate from the main application's DB layer."
    },
    {
      "id": "file:__tests__/e2e/database/seed.js",
      "type": "file",
      "name": "seed.js",
      "filePath": "__tests__/e2e/database/seed.js",
      "summary": "Defines fixture wallets, an API key, and tokens, and seeds/clears them directly in the database so E2E tests run against known data.",
      "tags": [
        "database",
        "seeding",
        "fixture",
        "e2e-utility",
        "tested"
      ],
      "complexity": "complex",
      "languageNotes": "Uses raw knex table inserts/deletes rather than the application's own repositories, so it bypasses business-logic validation when preparing test data."
    },
    {
      "id": "file:__tests__/e2e/database/seed.test.js",
      "type": "file",
      "name": "seed.test.js",
      "filePath": "__tests__/e2e/database/seed.test.js",
      "summary": "Verifies that seed.js correctly inserts the fixture API key, token, and wallet rows into the database before the E2E suite runs.",
      "tags": [
        "test",
        "database",
        "seeding",
        "verification"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/e2e/helpers/tokenActionsHelper.js",
      "type": "file",
      "name": "tokenActionsHelper.js",
      "filePath": "__tests__/e2e/helpers/tokenActionsHelper.js",
      "summary": "Provides response-body assertion helpers for token-transfer test scenarios, checking created, completed, and declined transfer states.",
      "tags": [
        "test-utility",
        "assertion",
        "token-transfer"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:__tests__/e2e/helpers/walletActionsHelper.js",
      "type": "file",
      "name": "walletActionsHelper.js",
      "filePath": "__tests__/e2e/helpers/walletActionsHelper.js",
      "summary": "Provides helpers to locate a wallet within a wallet-list response and assert or retrieve its token count for E2E wallet tests.",
      "tags": [
        "test-utility",
        "assertion",
        "wallet",
        "tokens"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:__tests__/e2e/libs/assertionLibrary.js",
      "type": "file",
      "name": "assertionLibrary.js",
      "filePath": "__tests__/e2e/libs/assertionLibrary.js",
      "summary": "Thin wrapper around Chai's assert library providing contains, equals, notEqual, and breakTest helpers with richer failure messages for E2E tests.",
      "tags": [
        "test-utility",
        "assertion-library",
        "chai"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:__tests__/e2e/libs/bootstrap.js",
      "type": "file",
      "name": "bootstrap.js",
      "filePath": "__tests__/e2e/libs/bootstrap.js",
      "summary": "Registers Mocha root hooks that seed the database before the E2E suite and clear it afterward, and re-exports the seed fixture data as testData.",
      "tags": [
        "test-setup",
        "mocha-hooks",
        "fixture",
        "e2e"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:__tests__/e2e/libs/sessionLibrary.js",
      "type": "file",
      "name": "sessionLibrary.js",
      "filePath": "__tests__/e2e/libs/sessionLibrary.js",
      "summary": "Provides a getSession helper that logs a wallet in via POST /auth and returns the resulting bearer-token response for use across E2E tests.",
      "tags": [
        "test-utility",
        "authentication",
        "session"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/config.js:sendGetRequest",
      "type": "function",
      "name": "sendGetRequest",
      "filePath": "__tests__/e2e/config.js",
      "lineRange": [
        14,
        16
      ],
      "summary": "Sends an authenticated GET request to the wallet API under test using supertest.",
      "tags": [
        "http-client",
        "utility",
        "test"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/config.js:sendPostRequest",
      "type": "function",
      "name": "sendPostRequest",
      "filePath": "__tests__/e2e/config.js",
      "lineRange": [
        18,
        20
      ],
      "summary": "Sends an authenticated POST request with a JSON body to the wallet API under test using supertest.",
      "tags": [
        "http-client",
        "utility",
        "test"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/__tests__/sendTokens/managingWalletMovesTokensBetweenWallets.test.js:payload",
      "type": "function",
      "name": "payload",
      "filePath": "__tests__/e2e/__tests__/sendTokens/managingWalletMovesTokensBetweenWallets.test.js",
      "lineRange": [
        37,
        46
      ],
      "summary": "Builds a token-transfer request payload from sender and receiver wallet fixtures for the managing-wallet transfer scenario.",
      "tags": [
        "test-fixture",
        "payload-builder"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/__tests__/sendTokens/sendTokensWithTrustRelationship.test.js:payload",
      "type": "function",
      "name": "payload",
      "filePath": "__tests__/e2e/__tests__/sendTokens/sendTokensWithTrustRelationship.test.js",
      "lineRange": [
        33,
        42
      ],
      "summary": "Builds a token-transfer request payload from two wallet fixtures for the trust-relationship transfer scenario.",
      "tags": [
        "test-fixture",
        "payload-builder"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/__tests__/sendTokens/sendTokensWithoutTrustRelationship.test.js:payload",
      "type": "function",
      "name": "payload",
      "filePath": "__tests__/e2e/__tests__/sendTokens/sendTokensWithoutTrustRelationship.test.js",
      "lineRange": [
        42,
        51
      ],
      "summary": "Builds a token-transfer request payload from two wallet fixtures for the no-trust pending-transfer scenario.",
      "tags": [
        "test-fixture",
        "payload-builder"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/database/seed.js:createTokens",
      "type": "function",
      "name": "createTokens",
      "filePath": "__tests__/e2e/database/seed.js",
      "lineRange": [
        79,
        91
      ],
      "summary": "Inserts a batch of fake tokens for a target wallet directly into the token table and returns their generated IDs.",
      "tags": [
        "database",
        "fixture",
        "seeding"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/database/seed.js:seed",
      "type": "function",
      "name": "seed",
      "filePath": "__tests__/e2e/database/seed.js",
      "lineRange": [
        93,
        162
      ],
      "summary": "Inserts the API key and all fixture wallets, then creates fixture tokens for the primary test wallets, populating the database for the E2E run.",
      "tags": [
        "database",
        "seeding",
        "fixture"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:__tests__/e2e/database/seed.js:clear",
      "type": "function",
      "name": "clear",
      "filePath": "__tests__/e2e/database/seed.js",
      "lineRange": [
        164,
        195
      ],
      "summary": "Deletes all fixture-related rows, the api key, transactions, tokens, trust relationships, and wallets, to reset database state between test runs.",
      "tags": [
        "database",
        "teardown",
        "cleanup"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/helpers/tokenActionsHelper.js:assertSendTokensBody",
      "type": "function",
      "name": "assertSendTokensBody",
      "filePath": "__tests__/e2e/helpers/tokenActionsHelper.js",
      "lineRange": [
        11,
        24
      ],
      "summary": "Asserts a token-send response has an ACCEPTED status and correct id, active, origin, and destination wallet fields.",
      "tags": [
        "assertion",
        "token-transfer",
        "test-utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/helpers/tokenActionsHelper.js:assertTransferCompletedBody",
      "type": "function",
      "name": "assertTransferCompletedBody",
      "filePath": "__tests__/e2e/helpers/tokenActionsHelper.js",
      "lineRange": [
        32,
        34
      ],
      "summary": "Asserts that a transfer response body reflects a completed state.",
      "tags": [
        "assertion",
        "token-transfer",
        "test-utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/helpers/tokenActionsHelper.js:assertTransferDeclinedBody",
      "type": "function",
      "name": "assertTransferDeclinedBody",
      "filePath": "__tests__/e2e/helpers/tokenActionsHelper.js",
      "lineRange": [
        42,
        44
      ],
      "summary": "Asserts that a transfer response body reflects a cancelled state.",
      "tags": [
        "assertion",
        "token-transfer",
        "test-utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/helpers/walletActionsHelper.js:assertTokenInWallet",
      "type": "function",
      "name": "assertTokenInWallet",
      "filePath": "__tests__/e2e/helpers/walletActionsHelper.js",
      "lineRange": [
        10,
        33
      ],
      "summary": "Finds a named wallet in a wallet-list response and asserts it holds the expected number of tokens.",
      "tags": [
        "assertion",
        "wallet",
        "tokens"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/helpers/walletActionsHelper.js:getNumberOfTokensFromWallet",
      "type": "function",
      "name": "getNumberOfTokensFromWallet",
      "filePath": "__tests__/e2e/helpers/walletActionsHelper.js",
      "lineRange": [
        41,
        56
      ],
      "summary": "Finds a named wallet in a wallet-list response and returns its current token count.",
      "tags": [
        "utility",
        "wallet",
        "tokens"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/libs/assertionLibrary.js:contains",
      "type": "function",
      "name": "contains",
      "filePath": "__tests__/e2e/libs/assertionLibrary.js",
      "lineRange": [
        13,
        15
      ],
      "summary": "Asserts that an expected value is included in an actual array or object using Chai.",
      "tags": [
        "assertion-library",
        "test-utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/libs/assertionLibrary.js:equals",
      "type": "function",
      "name": "equals",
      "filePath": "__tests__/e2e/libs/assertionLibrary.js",
      "lineRange": [
        24,
        26
      ],
      "summary": "Asserts equality between actual and expected values, including the response body in the failure message for easier debugging.",
      "tags": [
        "assertion-library",
        "test-utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/libs/assertionLibrary.js:notEqual",
      "type": "function",
      "name": "notEqual",
      "filePath": "__tests__/e2e/libs/assertionLibrary.js",
      "lineRange": [
        33,
        35
      ],
      "summary": "Asserts inequality between an actual and expected value using Chai.",
      "tags": [
        "assertion-library",
        "test-utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/libs/assertionLibrary.js:breakTest",
      "type": "function",
      "name": "breakTest",
      "filePath": "__tests__/e2e/libs/assertionLibrary.js",
      "lineRange": [
        41,
        43
      ],
      "summary": "Force-fails the current test with a custom failure message.",
      "tags": [
        "assertion-library",
        "test-utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:__tests__/e2e/libs/sessionLibrary.js:getSession",
      "type": "function",
      "name": "getSession",
      "filePath": "__tests__/e2e/libs/sessionLibrary.js",
      "lineRange": [
        4,
        17
      ],
      "summary": "Logs a wallet in via POST /auth with the given wallet name/id and password, asserts a 200 status, and returns the bearer-token response body.",
      "tags": [
        "authentication",
        "session",
        "test-utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/models/Transfer.js",
      "type": "file",
      "name": "Transfer.js",
      "filePath": "server/models/Transfer.js",
      "summary": "Domain model for token and bundle transfers between wallets, orchestrating trust checks, wallet-control checks, and state transitions (pending, requested, completed, cancelled) across the transfer lifecycle.",
      "tags": [
        "data-model",
        "business-logic",
        "transfer",
        "wallet",
        "state-machine",
        "tested"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/models/Transfer.spec.js",
      "type": "file",
      "name": "Transfer.spec.js",
      "filePath": "server/models/Transfer.spec.js",
      "summary": "Test suite for the Transfer model covering transfer, transferBundle, and the accept/decline/cancel/fulfill flows against stubbed repositories and dependent models.",
      "tags": [
        "test",
        "transfer",
        "unit-test"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/models/Trust.js",
      "type": "file",
      "name": "Trust.js",
      "filePath": "server/models/Trust.js",
      "summary": "Domain model managing trust relationships between wallets: requesting, accepting, declining, and cancelling trust, plus duplicate-request and management-circle validation.",
      "tags": [
        "data-model",
        "business-logic",
        "trust-relationship",
        "wallet",
        "tested"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/models/Trust.spec.js",
      "type": "file",
      "name": "Trust.spec.js",
      "filePath": "server/models/Trust.spec.js",
      "summary": "Test suite for the Trust model covering trust request creation, acceptance, decline, cancellation, and duplicate or circular trust validation.",
      "tags": [
        "test",
        "trust-relationship",
        "unit-test"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/models/Wallet.js",
      "type": "file",
      "name": "Wallet.js",
      "filePath": "server/models/Wallet.js",
      "summary": "Domain model for wallet creation and lookup, plus hierarchical control checks (parent/sub-wallet relationships) used throughout the trust and transfer flows.",
      "tags": [
        "data-model",
        "business-logic",
        "wallet",
        "access-control",
        "tested"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:server/models/Wallet.spec.js",
      "type": "file",
      "name": "Wallet.spec.js",
      "filePath": "server/models/Wallet.spec.js",
      "summary": "Test suite for the Wallet model covering wallet creation, lookup, and control-over checks against stubbed repositories.",
      "tags": [
        "test",
        "wallet",
        "unit-test"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/repositories/BaseRepository.js",
      "type": "file",
      "name": "BaseRepository.js",
      "filePath": "server/repositories/BaseRepository.js",
      "summary": "Generic data-access base class providing shared CRUD, a recursive and/or where-clause builder, pagination, and batch-insert logic reused by all entity repositories on top of Knex.",
      "tags": [
        "data-access",
        "base-class",
        "database",
        "query-builder",
        "tested"
      ],
      "complexity": "moderate",
      "languageNotes": "Implements a recursive and/or where-clause tree builder (whereBuilder) shared by every repository's filtered queries."
    },
    {
      "id": "class:server/models/Transfer.js:Transfer",
      "type": "class",
      "name": "Transfer",
      "filePath": "server/models/Transfer.js",
      "lineRange": [
        12,
        615
      ],
      "summary": "Core transfer domain model exposing transfer/transferBundle/accept/decline/cancel/fulfill operations that enforce wallet-control and trust rules before mutating transfer state.",
      "tags": [
        "data-model",
        "transfer",
        "state-machine",
        "business-logic"
      ],
      "complexity": "complex"
    },
    {
      "id": "class:server/models/Trust.js:Trust",
      "type": "class",
      "name": "Trust",
      "filePath": "server/models/Trust.js",
      "lineRange": [
        8,
        628
      ],
      "summary": "Core trust-relationship domain model handling requesting, accepting, declining, and cancelling trust between wallets, plus duplicate and management-circle validation.",
      "tags": [
        "data-model",
        "trust-relationship",
        "business-logic"
      ],
      "complexity": "complex"
    },
    {
      "id": "class:server/models/Wallet.js:Wallet",
      "type": "class",
      "name": "Wallet",
      "filePath": "server/models/Wallet.js",
      "lineRange": [
        8,
        179
      ],
      "summary": "Wallet domain model exposing creation, lookup, and hierarchical control-over checks used by trust and transfer logic to authorize operations.",
      "tags": [
        "data-model",
        "wallet",
        "access-control"
      ],
      "complexity": "moderate"
    },
    {
      "id": "class:server/repositories/BaseRepository.js:BaseRepository",
      "type": "class",
      "name": "BaseRepository",
      "filePath": "server/repositories/BaseRepository.js",
      "lineRange": [
        5,
        171
      ],
      "summary": "Shared repository base class implementing generic getById/getByFilter/countByFilter/update/create/batchCreate methods and a recursive and/or where-clause builder on top of Knex.",
      "tags": [
        "base-class",
        "data-access",
        "query-builder"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:server/models/Transfer.js:getByFilter",
      "type": "function",
      "name": "getByFilter",
      "filePath": "server/models/Transfer.js",
      "lineRange": [
        29,
        38
      ],
      "summary": "Fetches transfers via the repository by filter and strips wallet-id fields from each result before returning transfers and count.",
      "tags": [
        "query",
        "transfer"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/models/Transfer.js:getTransfers",
      "type": "function",
      "name": "getTransfers",
      "filePath": "server/models/Transfer.js",
      "lineRange": [
        61,
        133
      ],
      "summary": "Builds a composite and/or filter scoped to all wallets visible to the logged-in wallet (including sub-wallets) and delegates to getByFilter to list matching transfers.",
      "tags": [
        "query",
        "transfer",
        "filtering"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Transfer.js:isDeduct",
      "type": "function",
      "name": "isDeduct",
      "filePath": "server/models/Transfer.js",
      "lineRange": [
        138,
        147
      ],
      "summary": "Determines whether a transfer request is a deduct (pull) request by checking if the parent wallet controls the sender.",
      "tags": [
        "authorization",
        "transfer"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/models/Transfer.js:transfer",
      "type": "function",
      "name": "transfer",
      "filePath": "server/models/Transfer.js",
      "lineRange": [
        152,
        257
      ],
      "summary": "Validates that tokens belong to and are transferable by the sender, then completes, pends, or requests the transfer depending on trust and wallet-control relationships between sender and receiver.",
      "tags": [
        "business-logic",
        "transfer",
        "state-machine"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:server/models/Transfer.js:transferBundle",
      "type": "function",
      "name": "transferBundle",
      "filePath": "server/models/Transfer.js",
      "lineRange": [
        259,
        362
      ],
      "summary": "Applies the same control/trust-based routing as transfer but for a bundle of unclaimed tokens selected by count, first verifying sufficient token supply.",
      "tags": [
        "business-logic",
        "transfer",
        "state-machine"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:server/models/Transfer.js:acceptTransfer",
      "type": "function",
      "name": "acceptTransfer",
      "filePath": "server/models/Transfer.js",
      "lineRange": [
        367,
        412
      ],
      "summary": "Accepts a pending transfer after verifying the current wallet controls the receiver, marks it completed, and completes token transfer for the bundle or pending-transfer tokens.",
      "tags": [
        "business-logic",
        "transfer",
        "authorization"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Transfer.js:declineTransfer",
      "type": "function",
      "name": "declineTransfer",
      "filePath": "server/models/Transfer.js",
      "lineRange": [
        417,
        460
      ],
      "summary": "Declines a pending or requested transfer after verifying control over the appropriate wallet side, cancels the transfer, and releases the associated tokens.",
      "tags": [
        "business-logic",
        "transfer",
        "authorization"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Transfer.js:cancelTransfer",
      "type": "function",
      "name": "cancelTransfer",
      "filePath": "server/models/Transfer.js",
      "lineRange": [
        462,
        505
      ],
      "summary": "Cancels a pending or requested transfer after verifying control over the appropriate wallet side, mirroring declineTransfer's flow with the sides reversed.",
      "tags": [
        "business-logic",
        "transfer",
        "authorization"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Transfer.js:fulfillTransfer",
      "type": "function",
      "name": "fulfillTransfer",
      "filePath": "server/models/Transfer.js",
      "lineRange": [
        510,
        548
      ],
      "summary": "Fulfills a requested transfer after verifying the current wallet controls the sender, marking it completed and completing the associated bundle or pending tokens.",
      "tags": [
        "business-logic",
        "transfer",
        "authorization"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Transfer.js:fulfillTransferWithTokens",
      "type": "function",
      "name": "fulfillTransferWithTokens",
      "filePath": "server/models/Transfer.js",
      "lineRange": [
        554,
        614
      ],
      "summary": "Fulfills a requested transfer with an explicit token list, validating token count against the bundle size and that each token belongs to the sender before completing the transfer.",
      "tags": [
        "business-logic",
        "transfer",
        "validation"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Trust.js:getTrustRelationshipFilter",
      "type": "function",
      "name": "getTrustRelationshipFilter",
      "filePath": "server/models/Trust.js",
      "lineRange": [
        18,
        41
      ],
      "summary": "Static helper that builds an and/or filter object for trust relationships scoped to a wallet id, with optional state/type/request_type constraints.",
      "tags": [
        "query",
        "filtering",
        "trust-relationship"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/models/Trust.js:getTrustRelationships",
      "type": "function",
      "name": "getTrustRelationships",
      "filePath": "server/models/Trust.js",
      "lineRange": [
        46,
        126
      ],
      "summary": "Retrieves trust relationships for a wallet and its managed wallets with optional state/type/search filters, optionally excluding relationships entirely internal to the managed set.",
      "tags": [
        "query",
        "trust-relationship",
        "filtering"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:server/models/Trust.js:getTrustRelationshipsCount",
      "type": "function",
      "name": "getTrustRelationshipsCount",
      "filePath": "server/models/Trust.js",
      "lineRange": [
        128,
        137
      ],
      "summary": "Returns the count of trust relationships matching a wallet-scoped filter.",
      "tags": [
        "query",
        "trust-relationship"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/models/Trust.js:requestTrustFromAWallet",
      "type": "function",
      "name": "requestTrustFromAWallet",
      "filePath": "server/models/Trust.js",
      "lineRange": [
        152,
        263
      ],
      "summary": "Validates originator/actor/target control relationships to prevent self-dealing or circular sub-wallet requests, then creates a new trust request after checking for duplicates.",
      "tags": [
        "business-logic",
        "trust-relationship",
        "authorization"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:server/models/Trust.js:checkDuplicateRequest",
      "type": "function",
      "name": "checkDuplicateRequest",
      "filePath": "server/models/Trust.js",
      "lineRange": [
        266,
        309
      ],
      "summary": "Throws if an equivalent send or manage trust relationship already exists as requested or trusted between the same actor and target wallets.",
      "tags": [
        "validation",
        "trust-relationship"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Trust.js:checkManageCircle",
      "type": "function",
      "name": "checkManageCircle",
      "filePath": "server/models/Trust.js",
      "lineRange": [
        311,
        381
      ],
      "summary": "Throws if accepting a manage or yield trust relationship would create a management circle between two wallets that already trust each other in the opposite direction.",
      "tags": [
        "validation",
        "trust-relationship"
      ],
      "complexity": "complex"
    },
    {
      "id": "function:server/models/Trust.js:getTrustRelationshipsRequestedToMe",
      "type": "function",
      "name": "getTrustRelationshipsRequestedToMe",
      "filePath": "server/models/Trust.js",
      "lineRange": [
        386,
        409
      ],
      "summary": "Aggregates trust relationships requested against every wallet the given wallet can see, then filters to only those targeting one of those wallets.",
      "tags": [
        "query",
        "trust-relationship"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Trust.js:updateTrustState",
      "type": "function",
      "name": "updateTrustState",
      "filePath": "server/models/Trust.js",
      "lineRange": [
        411,
        432
      ],
      "summary": "Updates a trust relationship's state and formatted updated_at timestamp via the repository, merging the result back into the original relationship object.",
      "tags": [
        "mutation",
        "trust-relationship"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/models/Trust.js:acceptTrustRequestSentToMe",
      "type": "function",
      "name": "acceptTrustRequestSentToMe",
      "filePath": "server/models/Trust.js",
      "lineRange": [
        437,
        463
      ],
      "summary": "Locates a pending trust request sent to the wallet, checks for management circles, and transitions it to trusted state.",
      "tags": [
        "business-logic",
        "trust-relationship",
        "state-machine"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Trust.js:declineTrustRequestSentToMe",
      "type": "function",
      "name": "declineTrustRequestSentToMe",
      "filePath": "server/models/Trust.js",
      "lineRange": [
        468,
        493
      ],
      "summary": "Locates a pending trust request sent to the wallet and transitions it to canceled-by-target state.",
      "tags": [
        "business-logic",
        "trust-relationship",
        "state-machine"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Trust.js:cancelTrustRequest",
      "type": "function",
      "name": "cancelTrustRequest",
      "filePath": "server/models/Trust.js",
      "lineRange": [
        498,
        522
      ],
      "summary": "Cancels a trust request the wallet originated, verifying ownership before transitioning it to cancelled-by-originator state.",
      "tags": [
        "business-logic",
        "trust-relationship",
        "authorization"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Trust.js:hasTrust",
      "type": "function",
      "name": "hasTrust",
      "filePath": "server/models/Trust.js",
      "lineRange": [
        528,
        571
      ],
      "summary": "Checks whether a trusted relationship of the given type exists between sender and receiver wallets, considering both send and receive request-type directions.",
      "tags": [
        "query",
        "trust-relationship",
        "authorization"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Trust.js:getTrustRelationshipById",
      "type": "function",
      "name": "getTrustRelationshipById",
      "filePath": "server/models/Trust.js",
      "lineRange": [
        573,
        608
      ],
      "summary": "Fetches a trust relationship by id and verifies the requesting wallet controls the actor, target, or originator wallet before returning it.",
      "tags": [
        "query",
        "trust-relationship",
        "authorization"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Wallet.js:createWallet",
      "type": "function",
      "name": "createWallet",
      "filePath": "server/models/Wallet.js",
      "lineRange": [
        16,
        47
      ],
      "summary": "Creates a new wallet after checking the name is unused, then grants the creating wallet a trusted manage relationship over it.",
      "tags": [
        "business-logic",
        "wallet",
        "trust-relationship"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Wallet.js:getWallet",
      "type": "function",
      "name": "getWallet",
      "filePath": "server/models/Wallet.js",
      "lineRange": [
        57,
        74
      ],
      "summary": "Fetches a wallet by id, enforcing that the requesting wallet has control over it, and augments the result with its token count.",
      "tags": [
        "query",
        "wallet",
        "authorization"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Wallet.js:hasControlOver",
      "type": "function",
      "name": "hasControlOver",
      "filePath": "server/models/Wallet.js",
      "lineRange": [
        94,
        110
      ],
      "summary": "Determines whether one wallet controls another, either because they are the same wallet or because a trusted sub-wallet relationship exists between them.",
      "tags": [
        "authorization",
        "wallet",
        "access-control"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/models/Wallet.js:getSubWallets",
      "type": "function",
      "name": "getSubWallets",
      "filePath": "server/models/Wallet.js",
      "lineRange": [
        116,
        153
      ],
      "summary": "Builds and executes a filter for direct-managed or yield-managed sub-wallets of a parent wallet, optionally scoped to a specific child wallet.",
      "tags": [
        "query",
        "wallet",
        "filtering"
      ],
      "complexity": "moderate"
    },
    {
      "id": "function:server/models/Wallet.js:getAllWallets",
      "type": "function",
      "name": "getAllWallets",
      "filePath": "server/models/Wallet.js",
      "lineRange": [
        156,
        178
      ],
      "summary": "Delegates to the wallet repository to fetch a wallet together with its child and managed sub-wallets, supporting filtering, sorting, and pagination.",
      "tags": [
        "query",
        "wallet"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/repositories/TokenRepository.js",
      "type": "file",
      "name": "TokenRepository.js",
      "filePath": "server/repositories/TokenRepository.js",
      "summary": "Thin repository extending BaseRepository to fetch tokens by id or by an associated transfer id via a join with the transaction table.",
      "tags": [
        "data-access",
        "repository",
        "database",
        "tested"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/repositories/TransferRepository.js",
      "type": "file",
      "name": "TransferRepository.js",
      "filePath": "server/repositories/TransferRepository.js",
      "summary": "Repository for transfer records, building CTE-based insert/update queries that also join wallet names, plus filtered/paginated queries and pending-transfer summaries.",
      "tags": [
        "data-access",
        "repository",
        "database",
        "transfer",
        "tested"
      ],
      "complexity": "complex",
      "languageNotes": "Uses Knex CTEs (.with(...)) so create/update can return the inserted or updated row joined with human-readable wallet names in a single query."
    },
    {
      "id": "file:server/repositories/TrustRepository.js",
      "type": "file",
      "name": "TrustRepository.js",
      "filePath": "server/repositories/TrustRepository.js",
      "summary": "Repository for wallet_trust records, providing filtered/paginated lookups joined with wallet names and specialized queries by originator or target wallet id.",
      "tags": [
        "data-access",
        "repository",
        "database",
        "trust-relationship",
        "tested"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:server/repositories/WalletRepository.js",
      "type": "file",
      "name": "WalletRepository.js",
      "filePath": "server/repositories/WalletRepository.js",
      "summary": "Repository for wallet records, including name/id lookup and a complex getAllWallets query that unions self, child, and managed wallets with optional name filtering, date range, and pagination.",
      "tags": [
        "data-access",
        "repository",
        "database",
        "wallet",
        "tested"
      ],
      "complexity": "moderate",
      "languageNotes": "getAllWallets composes several Knex subqueries with union() to combine child, directly-managed, and yield-managed wallets into one result set."
    },
    {
      "id": "file:server/utils/HttpError.js",
      "type": "file",
      "name": "HttpError.js",
      "filePath": "server/utils/HttpError.js",
      "summary": "Custom Error subclass carrying an HTTP status code and a transaction-rollback flag, used across models and services to signal API errors.",
      "tags": [
        "error-handling",
        "utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:server/utils/trust-enums.js",
      "type": "file",
      "name": "trust-enums.js",
      "filePath": "server/utils/trust-enums.js",
      "summary": "Defines trust relationship type, state, and request-type enums plus a helper mapping request types to trust types, shared across trust and transfer logic.",
      "tags": [
        "enum",
        "constants",
        "trust-relationship",
        "utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:server/repositories/TokenRepository.js:TokenRepository",
      "type": "class",
      "name": "TokenRepository",
      "filePath": "server/repositories/TokenRepository.js",
      "lineRange": [
        5,
        45
      ],
      "summary": "Repository extending BaseRepository to look up tokens by id and by transfer id via a join to the transaction table.",
      "tags": [
        "repository",
        "data-access"
      ],
      "complexity": "simple"
    },
    {
      "id": "class:server/repositories/TransferRepository.js:TransferRepository",
      "type": "class",
      "name": "TransferRepository",
      "filePath": "server/repositories/TransferRepository.js",
      "lineRange": [
        6,
        246
      ],
      "summary": "Repository extending BaseRepository for transfer records, using CTE queries for create/update that join wallet names, plus filter/pagination and pending-transfer summary queries.",
      "tags": [
        "repository",
        "data-access",
        "transfer"
      ],
      "complexity": "complex"
    },
    {
      "id": "class:server/repositories/TrustRepository.js:TrustRepository",
      "type": "class",
      "name": "TrustRepository",
      "filePath": "server/repositories/TrustRepository.js",
      "lineRange": [
        3,
        278
      ],
      "summary": "Repository extending BaseRepository for wallet_trust records, providing filtered, paginated, and originator/target-scoped lookups joined with wallet names.",
      "tags": [
        "repository",
        "data-access",
        "trust-relationship"
      ],
      "complexity": "complex"
    },
    {
      "id": "class:server/repositories/WalletRepository.js:WalletRepository",
      "type": "class",
      "name": "WalletRepository",
      "filePath": "server/repositories/WalletRepository.js",
      "lineRange": [
        9,
        197
      ],
      "summary": "Repository extending BaseRepository for wallet records, including a getAllWallets query that unions self, child, and managed wallets with name filtering, date range, and pagination.",
      "tags": [
        "repository",
        "data-access",
        "wallet"
      ],
      "complexity": "complex"
    },
    {
      "id": "class:server/utils/HttpError.js:HttpError",
      "type": "class",
      "name": "HttpError",
      "filePath": "server/utils/HttpError.js",
      "lineRange": [
        8,
        20
      ],
      "summary": "Error subclass adding an HTTP status code and a rollback flag so callers can convert thrown errors into API responses and control transaction rollback.",
      "tags": [
        "error-handling",
        "utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:server/utils/trust-enums.js:getTrustTypeByRequestType",
      "type": "function",
      "name": "getTrustTypeByRequestType",
      "filePath": "server/utils/trust-enums.js",
      "lineRange": [
        28,
        46
      ],
      "summary": "Maps a trust request type (send/receive/manage/yield/deduct/release) to its corresponding coarse trust type, throwing an HttpError for unknown request types.",
      "tags": [
        "utility",
        "trust-relationship",
        "mapping"
      ],
      "complexity": "simple"
    },
    {
      "id": "service:.dockerignore",
      "type": "service",
      "name": ".dockerignore",
      "filePath": ".dockerignore",
      "summary": "Docker build-context ignore file that excludes node_modules from the image build, keeping the build context small and avoiding stale or platform-mismatched dependencies being copied in.",
      "tags": [
        "containerization",
        "infrastructure",
        "build-context",
        "docker"
      ],
      "complexity": "simple"
    },
    {
      "id": "service:Dockerfile",
      "type": "service",
      "name": "Dockerfile",
      "filePath": "Dockerfile",
      "summary": "Single-stage Docker build for the treetracker-wallet-api Node.js service, based on node:16-alpine, that installs dependencies with npm ci and starts the app with node .",
      "tags": [
        "containerization",
        "infrastructure",
        "deployment",
        "node"
      ],
      "complexity": "simple",
      "languageNotes": "Copies package.json and package-lock.json and runs npm ci before copying the rest of the source, so Docker layer caching skips the install step when only application code changes."
    },
    {
      "id": "service:Dockerfile:node",
      "type": "service",
      "name": "node",
      "filePath": "Dockerfile",
      "summary": "Base build stage using the node:16-alpine image where package dependencies are installed and the application source is copied in before the container's default command runs it.",
      "tags": [
        "containerization",
        "docker-stage",
        "build",
        "node"
      ],
      "complexity": "simple"
    },
    {
      "id": "service:docker-compose.yml",
      "type": "service",
      "name": "docker-compose.yml",
      "filePath": "docker-compose.yml",
      "summary": "Local development orchestration defining a PostgreSQL 13 database service (wallet_user/secret credentials) exposed on port 5432 with a named volume for persistent storage.",
      "tags": [
        "orchestration",
        "infrastructure",
        "database",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "pipeline:.github/workflows/patch-v1.10-CI-build-release.yml",
      "type": "pipeline",
      "name": "patch-v1.10-CI-build-release.yml",
      "filePath": ".github/workflows/patch-v1.10-CI-build-release.yml",
      "summary": "Manually triggered GitHub Actions workflow that runs the full test suite against the legacy v1.10 branch, then runs semantic-release and builds/pushes a Docker image tagged with the npm version to DockerHub.",
      "tags": [
        "ci-cd",
        "deployment",
        "containerization",
        "release-automation",
        "testing"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses an older Node 10/12 toolchain and actions/checkout@v2, reflecting that it patches the frozen v1.10.x release line separately from the mainline pipeline."
    },
    {
      "id": "pipeline:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml",
      "type": "pipeline",
      "name": "treetracker-wallet-api-build-deploy-dev.yml",
      "filePath": ".github/workflows/treetracker-wallet-api-build-deploy-dev.yml",
      "summary": "Push-to-master GitHub Actions workflow with three chained jobs: build and push a Docker image, deploy it to the DigitalOcean Kubernetes dev cluster via kustomize, and run end-to-end tests against the deployed dev environment.",
      "tags": [
        "ci-cd",
        "deployment",
        "kubernetes",
        "containerization",
        "testing"
      ],
      "complexity": "moderate",
      "languageNotes": "Passes the built image tag between jobs via upload-artifact/download-artifact since GitHub Actions jobs run in isolated runners."
    },
    {
      "id": "pipeline:.github/workflows/treetracker-wallet-api-deploy-prod.yml",
      "type": "pipeline",
      "name": "treetracker-wallet-api-deploy-prod.yml",
      "filePath": ".github/workflows/treetracker-wallet-api-deploy-prod.yml",
      "summary": "Manually dispatched workflow that deploys a chosen git tag/branch to the production DigitalOcean Kubernetes cluster using kustomize and kubectl, requiring human approval.",
      "tags": [
        "ci-cd",
        "deployment",
        "kubernetes",
        "production"
      ],
      "complexity": "simple"
    },
    {
      "id": "pipeline:.github/workflows/treetracker-wallet-api-deploy-test.yml",
      "type": "pipeline",
      "name": "treetracker-wallet-api-deploy-test.yml",
      "filePath": ".github/workflows/treetracker-wallet-api-deploy-test.yml",
      "summary": "Manually dispatched workflow that deploys a chosen git tag/branch to the test DigitalOcean Kubernetes cluster using kustomize and kubectl, requiring human approval.",
      "tags": [
        "ci-cd",
        "deployment",
        "kubernetes",
        "test-environment"
      ],
      "complexity": "simple"
    },
    {
      "id": "pipeline:.github/workflows/treetracker-wallet-api-deploy-v1.10-dev.yml",
      "type": "pipeline",
      "name": "treetracker-wallet-api-deploy-v1.10-dev.yml",
      "filePath": ".github/workflows/treetracker-wallet-api-deploy-v1.10-dev.yml",
      "summary": "Manually dispatched workflow that deploys the legacy v1.10 branch to the DigitalOcean Kubernetes dev cluster using kustomize and kubectl.",
      "tags": [
        "ci-cd",
        "deployment",
        "kubernetes",
        "legacy-version"
      ],
      "complexity": "simple"
    },
    {
      "id": "pipeline:.github/workflows/treetracker-wallet-api-pull-request-ci.yml",
      "type": "pipeline",
      "name": "treetracker-wallet-api-pull-request-ci.yml",
      "filePath": ".github/workflows/treetracker-wallet-api-pull-request-ci.yml",
      "summary": "Pull-request CI workflow for PRs targeting master or v1.10 that lints the code, runs database migrations against a Postgres service container, and executes the test suite.",
      "tags": [
        "ci-cd",
        "testing",
        "linting",
        "pull-request"
      ],
      "complexity": "moderate"
    },
    {
      "id": "pipeline:.github/workflows/treetracker-wallet-api-test-e2e-test.yml",
      "type": "pipeline",
      "name": "treetracker-wallet-api-test-e2e-test.yml",
      "filePath": ".github/workflows/treetracker-wallet-api-test-e2e-test.yml",
      "summary": "Manually dispatched workflow that installs mocha and runs the end-to-end test suite against the test environment.",
      "tags": [
        "ci-cd",
        "testing",
        "e2e",
        "test-environment"
      ],
      "complexity": "simple"
    },
    {
      "id": "pipeline:.github/workflows/treetracker-wallet-api-test-e2e.yml",
      "type": "pipeline",
      "name": "treetracker-wallet-api-test-e2e.yml",
      "filePath": ".github/workflows/treetracker-wallet-api-test-e2e.yml",
      "summary": "Manually dispatched workflow that installs mocha and runs the end-to-end test suite against the dev environment.",
      "tags": [
        "ci-cd",
        "testing",
        "e2e",
        "dev-environment"
      ],
      "complexity": "simple"
    },
    {
      "id": "step:.github/workflows/patch-v1.10-CI-build-release.yml:test",
      "type": "resource",
      "name": "test",
      "filePath": ".github/workflows/patch-v1.10-CI-build-release.yml",
      "summary": "Job that checks out the v1.10 branch, spins up a Postgres service container, and runs db-migrate, unit, integration, and repository tests on Node 12.x.",
      "tags": [
        "ci-cd",
        "testing",
        "database"
      ],
      "complexity": "simple"
    },
    {
      "id": "step:.github/workflows/patch-v1.10-CI-build-release.yml:release",
      "type": "resource",
      "name": "release",
      "filePath": ".github/workflows/patch-v1.10-CI-build-release.yml",
      "summary": "Job that runs semantic-release on the v1.10 branch, then builds a Docker image tagged with the resolved npm version and pushes it to DockerHub, persisting the tag as a build artifact.",
      "tags": [
        "ci-cd",
        "release-automation",
        "containerization"
      ],
      "complexity": "moderate"
    },
    {
      "id": "step:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml:build",
      "type": "resource",
      "name": "build",
      "filePath": ".github/workflows/treetracker-wallet-api-build-deploy-dev.yml",
      "summary": "Job that runs semantic-release, builds a Docker image tagged with the npm version, pushes it to DockerHub, and persists the image tag as an artifact for the deploy job.",
      "tags": [
        "ci-cd",
        "release-automation",
        "containerization"
      ],
      "complexity": "moderate"
    },
    {
      "id": "step:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml:deploy",
      "type": "resource",
      "name": "deploy",
      "filePath": ".github/workflows/treetracker-wallet-api-build-deploy-dev.yml",
      "summary": "Job that downloads the built image tag artifact, updates the kustomize image reference, connects to the DigitalOcean dev Kubernetes cluster, clears prior migration jobs, and applies the updated manifests.",
      "tags": [
        "ci-cd",
        "deployment",
        "kubernetes"
      ],
      "complexity": "moderate"
    },
    {
      "id": "step:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml:test",
      "type": "resource",
      "name": "test",
      "filePath": ".github/workflows/treetracker-wallet-api-build-deploy-dev.yml",
      "summary": "Job that installs mocha and runs the end-to-end test suite against the freshly deployed dev environment.",
      "tags": [
        "ci-cd",
        "testing",
        "e2e"
      ],
      "complexity": "simple"
    },
    {
      "id": "step:.github/workflows/treetracker-wallet-api-deploy-prod.yml:deploy-test",
      "type": "resource",
      "name": "deploy-test",
      "filePath": ".github/workflows/treetracker-wallet-api-deploy-prod.yml",
      "summary": "Job that checks out the chosen git tag, updates the kustomize image reference, connects to the DigitalOcean production Kubernetes cluster, clears prior migration jobs, and applies the manifests to production.",
      "tags": [
        "ci-cd",
        "deployment",
        "kubernetes",
        "production"
      ],
      "complexity": "simple"
    },
    {
      "id": "step:.github/workflows/treetracker-wallet-api-deploy-test.yml:deploy-test",
      "type": "resource",
      "name": "deploy-test",
      "filePath": ".github/workflows/treetracker-wallet-api-deploy-test.yml",
      "summary": "Job that checks out the chosen git tag, updates the kustomize image reference, connects to the DigitalOcean test Kubernetes cluster, clears prior migration jobs, and applies the manifests to the test namespace.",
      "tags": [
        "ci-cd",
        "deployment",
        "kubernetes",
        "test-environment"
      ],
      "complexity": "simple"
    },
    {
      "id": "step:.github/workflows/treetracker-wallet-api-deploy-v1.10-dev.yml:deploy-test",
      "type": "resource",
      "name": "deploy-test",
      "filePath": ".github/workflows/treetracker-wallet-api-deploy-v1.10-dev.yml",
      "summary": "Job that checks out the v1.10 branch, connects to the DigitalOcean dev Kubernetes cluster, clears prior migration jobs, and applies the development overlay manifests.",
      "tags": [
        "ci-cd",
        "deployment",
        "kubernetes",
        "legacy-version"
      ],
      "complexity": "simple"
    },
    {
      "id": "step:.github/workflows/treetracker-wallet-api-pull-request-ci.yml:build",
      "type": "resource",
      "name": "build",
      "filePath": ".github/workflows/treetracker-wallet-api-pull-request-ci.yml",
      "summary": "Job that runs ESLint, applies db-migrate against a Postgres service container, and runs the test suite for every pull request targeting master or v1.10.",
      "tags": [
        "ci-cd",
        "testing",
        "linting",
        "database"
      ],
      "complexity": "simple"
    },
    {
      "id": "step:.github/workflows/treetracker-wallet-api-test-e2e-test.yml:build",
      "type": "resource",
      "name": "build",
      "filePath": ".github/workflows/treetracker-wallet-api-test-e2e-test.yml",
      "summary": "Job that installs mocha and npm dependencies, then runs the end-to-end test suite against the test environment using the TEST_ENV secret.",
      "tags": [
        "ci-cd",
        "testing",
        "e2e"
      ],
      "complexity": "simple"
    },
    {
      "id": "step:.github/workflows/treetracker-wallet-api-test-e2e.yml:build",
      "type": "resource",
      "name": "build",
      "filePath": ".github/workflows/treetracker-wallet-api-test-e2e.yml",
      "summary": "Job that installs mocha and npm dependencies, then runs the end-to-end test suite against the dev environment using the DEVELOPMENT_ENV secret.",
      "tags": [
        "ci-cd",
        "testing",
        "e2e"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:.env.ci",
      "type": "config",
      "name": ".env.ci",
      "filePath": ".env.ci",
      "summary": "CI environment configuration providing a fixed RSA JWT public/private key pair used by automated test runs (test-unit-ci, test-integration-ci, test-seed-ci) instead of developer-generated keys.",
      "tags": [
        "configuration",
        "ci-cd",
        "environment-variables",
        "security",
        "testing"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:.env.example",
      "type": "config",
      "name": ".env.example",
      "filePath": ".env.example",
      "summary": "Template environment file listing required configuration variables for the database connection, JWT signing keys, log level, and Keycloak integration; used as the basis for local .env/.env.test files.",
      "tags": [
        "configuration",
        "environment-variables",
        "database",
        "security",
        "keycloak"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:.prettierrc.json",
      "type": "config",
      "name": ".prettierrc.json",
      "filePath": ".prettierrc.json",
      "summary": "Prettier code formatting configuration enforcing semicolons, trailing commas, and single quotes across the codebase.",
      "tags": [
        "configuration",
        "code-style",
        "build-system",
        "formatting"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:CHANGELOG.md",
      "type": "document",
      "name": "CHANGELOG.md",
      "filePath": "CHANGELOG.md",
      "summary": "Auto-generated changelog (conventional-commits style) documenting every released version from 1.0.0 through 1.45.0, listing bug fixes and features per release.",
      "tags": [
        "documentation",
        "changelog",
        "release-notes",
        "version-history"
      ],
      "complexity": "complex"
    },
    {
      "id": "document:README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "README.md",
      "summary": "Primary project documentation covering setup (database, environment variables, JWT keygen), the layered service/model/repository architecture, error handling, schema validation, Keycloak authentication, and the full test suite (unit, integration, seeding, e2e) with Postman usage instructions.",
      "tags": [
        "documentation",
        "entry-point",
        "overview",
        "architecture",
        "testing"
      ],
      "complexity": "complex"
    },
    {
      "id": "config:package.json",
      "type": "config",
      "name": "package.json",
      "filePath": "package.json",
      "summary": "npm package manifest for the treetracker-wallet-api Express/PostgreSQL service, declaring runtime dependencies (express, knex, pg, jsonwebtoken, joi, @aws-sdk/client-s3), dev/test tooling (mocha, chai, eslint, prettier, db-migrate), and npm scripts for linting, testing, database migration, and running the server.",
      "tags": [
        "configuration",
        "build-system",
        "dependencies",
        "npm",
        "testing"
      ],
      "complexity": "moderate"
    },
    {
      "id": "config:__tests__/mock-data/Meisze.json",
      "type": "config",
      "name": "Meisze.json",
      "filePath": "__tests__/mock-data/Meisze.json",
      "summary": "Mock wallet/user fixture for a test user named 'meisze', supplying id, name, and password used to seed or authenticate test scenarios in the integration test suite.",
      "tags": [
        "test-fixture",
        "mock-data",
        "testing",
        "json"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:__tests__/mock-data/TokenA.json",
      "type": "config",
      "name": "TokenA.json",
      "filePath": "__tests__/mock-data/TokenA.json",
      "summary": "Mock token fixture pairing a token id with a capture_id, used to simulate a treetracker capture/token record in transfer-related integration tests.",
      "tags": [
        "test-fixture",
        "mock-data",
        "testing",
        "json",
        "token"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:__tests__/mock-data/Zaven.json",
      "type": "config",
      "name": "Zaven.json",
      "filePath": "__tests__/mock-data/Zaven.json",
      "summary": "Mock wallet/user fixture for a test user named 'zaven', supplying id, name, and password used by the auth and bundle-transfer-decline integration specs.",
      "tags": [
        "test-fixture",
        "mock-data",
        "testing",
        "json"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020241-AddDefaultIdTransactionTable-down.sql:transaction",
      "type": "table",
      "name": "20210211020241-AddDefaultIdTransactionTable-down.sql",
      "filePath": "database/migrations/sqls/20210211020241-AddDefaultIdTransactionTable-down.sql",
      "summary": "Down migration that reverts the transaction table's id column, removing the uuid_generate_v4() default.",
      "tags": [
        "database",
        "migration",
        "rollback",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020241-AddDefaultIdTransactionTable-up.sql:transaction",
      "type": "table",
      "name": "20210211020241-AddDefaultIdTransactionTable-up.sql",
      "filePath": "database/migrations/sqls/20210211020241-AddDefaultIdTransactionTable-up.sql",
      "summary": "Up migration that sets the transaction table's id column to default to uuid_generate_v4(), enabling server-generated UUID primary keys.",
      "tags": [
        "database",
        "migration",
        "schema-change",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020257-AddDefaultIdTransferTable-down.sql:transfer",
      "type": "table",
      "name": "20210211020257-AddDefaultIdTransferTable-down.sql",
      "filePath": "database/migrations/sqls/20210211020257-AddDefaultIdTransferTable-down.sql",
      "summary": "Down migration that reverts the transfer table's id column, removing the uuid_generate_v4() default.",
      "tags": [
        "database",
        "migration",
        "rollback",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020257-AddDefaultIdTransferTable-up.sql:transfer",
      "type": "table",
      "name": "20210211020257-AddDefaultIdTransferTable-up.sql",
      "filePath": "database/migrations/sqls/20210211020257-AddDefaultIdTransferTable-up.sql",
      "summary": "Up migration that sets the transfer table's id column to default to uuid_generate_v4(), enabling server-generated UUID primary keys.",
      "tags": [
        "database",
        "migration",
        "schema-change",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020301-AddDefaultIdTokenTable-down.sql:token",
      "type": "table",
      "name": "20210211020301-AddDefaultIdTokenTable-down.sql",
      "filePath": "database/migrations/sqls/20210211020301-AddDefaultIdTokenTable-down.sql",
      "summary": "Down migration that reverts the token table's id column, removing the uuid_generate_v4() default.",
      "tags": [
        "database",
        "migration",
        "rollback",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020301-AddDefaultIdTokenTable-up.sql:token",
      "type": "table",
      "name": "20210211020301-AddDefaultIdTokenTable-up.sql",
      "filePath": "database/migrations/sqls/20210211020301-AddDefaultIdTokenTable-up.sql",
      "summary": "Up migration that sets the token table's id column to default to uuid_generate_v4(), enabling server-generated UUID primary keys.",
      "tags": [
        "database",
        "migration",
        "schema-change",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020304-AddDefaultIdWalletTable-down.sql:wallet",
      "type": "table",
      "name": "20210211020304-AddDefaultIdWalletTable-down.sql",
      "filePath": "database/migrations/sqls/20210211020304-AddDefaultIdWalletTable-down.sql",
      "summary": "Down migration that reverts the wallet table's id column, removing the uuid_generate_v4() default.",
      "tags": [
        "database",
        "migration",
        "rollback",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020304-AddDefaultIdWalletTable-up.sql:wallet",
      "type": "table",
      "name": "20210211020304-AddDefaultIdWalletTable-up.sql",
      "filePath": "database/migrations/sqls/20210211020304-AddDefaultIdWalletTable-up.sql",
      "summary": "Up migration that sets the wallet table's id column to default to uuid_generate_v4(), enabling server-generated UUID primary keys.",
      "tags": [
        "database",
        "migration",
        "schema-change",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020331-AddDefaultIdApiKeyTable-down.sql:api_key",
      "type": "table",
      "name": "20210211020331-AddDefaultIdApiKeyTable-down.sql",
      "filePath": "database/migrations/sqls/20210211020331-AddDefaultIdApiKeyTable-down.sql",
      "summary": "Down migration that reverts the api_key table's id column, removing the uuid_generate_v4() default.",
      "tags": [
        "database",
        "migration",
        "rollback",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020331-AddDefaultIdApiKeyTable-up.sql:api_key",
      "type": "table",
      "name": "20210211020331-AddDefaultIdApiKeyTable-up.sql",
      "filePath": "database/migrations/sqls/20210211020331-AddDefaultIdApiKeyTable-up.sql",
      "summary": "Up migration that sets the api_key table's id column to default to uuid_generate_v4(), enabling server-generated UUID primary keys.",
      "tags": [
        "database",
        "migration",
        "schema-change",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020340-AddDefaultIdTransferAuditTable-down.sql:transfer_audit",
      "type": "table",
      "name": "20210211020340-AddDefaultIdTransferAuditTable-down.sql",
      "filePath": "database/migrations/sqls/20210211020340-AddDefaultIdTransferAuditTable-down.sql",
      "summary": "Down migration that reverts the transfer_audit table's id column, removing the uuid_generate_v4() default.",
      "tags": [
        "database",
        "migration",
        "rollback",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020340-AddDefaultIdTransferAuditTable-up.sql:transfer_audit",
      "type": "table",
      "name": "20210211020340-AddDefaultIdTransferAuditTable-up.sql",
      "filePath": "database/migrations/sqls/20210211020340-AddDefaultIdTransferAuditTable-up.sql",
      "summary": "Up migration that sets the transfer_audit table's id column to default to uuid_generate_v4(), enabling server-generated UUID primary keys.",
      "tags": [
        "database",
        "migration",
        "schema-change",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020347-AddDefaultIdWalletEventTable-down.sql:wallet_event",
      "type": "table",
      "name": "20210211020347-AddDefaultIdWalletEventTable-down.sql",
      "filePath": "database/migrations/sqls/20210211020347-AddDefaultIdWalletEventTable-down.sql",
      "summary": "Down migration that reverts the wallet_event table's id column, removing the uuid_generate_v4() default.",
      "tags": [
        "database",
        "migration",
        "rollback",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020347-AddDefaultIdWalletEventTable-up.sql:wallet_event",
      "type": "table",
      "name": "20210211020347-AddDefaultIdWalletEventTable-up.sql",
      "filePath": "database/migrations/sqls/20210211020347-AddDefaultIdWalletEventTable-up.sql",
      "summary": "Up migration that sets the wallet_event table's id column to default to uuid_generate_v4(), enabling server-generated UUID primary keys.",
      "tags": [
        "database",
        "migration",
        "schema-change",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020352-AddDefaultIdWalletTrustTable-down.sql:wallet_trust",
      "type": "table",
      "name": "20210211020352-AddDefaultIdWalletTrustTable-down.sql",
      "filePath": "database/migrations/sqls/20210211020352-AddDefaultIdWalletTrustTable-down.sql",
      "summary": "Down migration that reverts the wallet_trust table's id column, removing the uuid_generate_v4() default.",
      "tags": [
        "database",
        "migration",
        "rollback",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020352-AddDefaultIdWalletTrustTable-up.sql:wallet_trust",
      "type": "table",
      "name": "20210211020352-AddDefaultIdWalletTrustTable-up.sql",
      "filePath": "database/migrations/sqls/20210211020352-AddDefaultIdWalletTrustTable-up.sql",
      "summary": "Up migration that sets the wallet_trust table's id column to default to uuid_generate_v4(), enabling server-generated UUID primary keys.",
      "tags": [
        "database",
        "migration",
        "schema-change",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020356-AddDefaultIdWalletTrustLogTable-down.sql:wallet_trust_log",
      "type": "table",
      "name": "20210211020356-AddDefaultIdWalletTrustLogTable-down.sql",
      "filePath": "database/migrations/sqls/20210211020356-AddDefaultIdWalletTrustLogTable-down.sql",
      "summary": "Down migration that reverts the wallet_trust_log table's id column, removing the uuid_generate_v4() default.",
      "tags": [
        "database",
        "migration",
        "rollback",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20210211020356-AddDefaultIdWalletTrustLogTable-up.sql:wallet_trust_log",
      "type": "table",
      "name": "20210211020356-AddDefaultIdWalletTrustLogTable-up.sql",
      "filePath": "database/migrations/sqls/20210211020356-AddDefaultIdWalletTrustLogTable-up.sql",
      "summary": "Up migration that sets the wallet_trust_log table's id column to default to uuid_generate_v4(), enabling server-generated UUID primary keys.",
      "tags": [
        "database",
        "migration",
        "schema-change",
        "uuid"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20230314184543-add-batch-create-check-down.sql:api_key",
      "type": "table",
      "name": "20230314184543-add-batch-create-check-down.sql",
      "filePath": "database/migrations/sqls/20230314184543-add-batch-create-check-down.sql",
      "summary": "Down migration that removes the batch_create_access boolean column from the api_key table, reverting the batch-create permission feature.",
      "tags": [
        "database",
        "migration",
        "rollback",
        "api-key",
        "authorization"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20230314184543-add-batch-create-check-up.sql:api_key",
      "type": "table",
      "name": "20230314184543-add-batch-create-check-up.sql",
      "filePath": "database/migrations/sqls/20230314184543-add-batch-create-check-up.sql",
      "summary": "Up migration that adds a batch_create_access boolean column (default false) to the api_key table, gating which API keys can perform batch create operations.",
      "tags": [
        "database",
        "migration",
        "schema-change",
        "api-key",
        "authorization"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20230529135030-add-about-up.sql:wallet",
      "type": "table",
      "name": "wallet",
      "filePath": "database/migrations/sqls/20230529135030-add-about-up.sql",
      "summary": "Up migration that adds a varchar `about` column to the wallet table.",
      "tags": [
        "database",
        "migration",
        "schema-change",
        "wallet"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20230529135030-add-about-down.sql:wallet",
      "type": "table",
      "name": "wallet",
      "filePath": "database/migrations/sqls/20230529135030-add-about-down.sql",
      "summary": "Down migration that reverts the wallet table by dropping the `about` column.",
      "tags": [
        "database",
        "migration",
        "rollback",
        "wallet"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20240412001733-AddCoverUrl-up.sql:wallet",
      "type": "table",
      "name": "wallet",
      "filePath": "database/migrations/sqls/20240412001733-AddCoverUrl-up.sql",
      "summary": "Up migration that adds a varchar `cover_url` column to the wallet table.",
      "tags": [
        "database",
        "migration",
        "schema-change",
        "wallet"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20240412001733-AddCoverUrl-down.sql:wallet",
      "type": "table",
      "name": "wallet",
      "filePath": "database/migrations/sqls/20240412001733-AddCoverUrl-down.sql",
      "summary": "Down migration that reverts the wallet table by dropping the `cover_url` column.",
      "tags": [
        "database",
        "migration",
        "rollback",
        "wallet"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20240422141722-add-display-name-up.sql:wallet",
      "type": "table",
      "name": "wallet",
      "filePath": "database/migrations/sqls/20240422141722-add-display-name-up.sql",
      "summary": "Up migration that adds a varchar `display_name` column to the wallet table.",
      "tags": [
        "database",
        "migration",
        "schema-change",
        "wallet"
      ],
      "complexity": "simple"
    },
    {
      "id": "table:database/migrations/sqls/20240422141722-add-display-name-down.sql:wallet",
      "type": "table",
      "name": "wallet",
      "filePath": "database/migrations/sqls/20240422141722-add-display-name-down.sql",
      "summary": "Down migration that reverts the wallet table by dropping the `display_name` column.",
      "tags": [
        "database",
        "migration",
        "rollback",
        "wallet"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/base/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "deployment/base/kustomization.yaml",
      "summary": "Kustomize base configuration that aggregates the wallet API deployment, service, mapping, migration job, and RBAC manifests into a single resource set.",
      "tags": [
        "kustomize",
        "configuration",
        "infrastructure",
        "deployment"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/base/namespace.yaml",
      "type": "config",
      "name": "namespace.yaml",
      "filePath": "deployment/base/namespace.yaml",
      "summary": "Defines the wallet-api Kubernetes namespace used to isolate the wallet API's cluster resources.",
      "tags": [
        "kubernetes",
        "namespace",
        "infrastructure",
        "configuration"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/base/treetracker-wallet-api-clusterrole.yaml",
      "type": "config",
      "name": "treetracker-wallet-api-clusterrole.yaml",
      "filePath": "deployment/base/treetracker-wallet-api-clusterrole.yaml",
      "summary": "ClusterRole granting get/watch/list permissions on services, pods, and jobs, used by the k8s-wait-for readiness-checking tooling.",
      "tags": [
        "kubernetes",
        "rbac",
        "clusterrole",
        "infrastructure"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/base/treetracker-wallet-api-clusterrolebinding.yaml",
      "type": "config",
      "name": "treetracker-wallet-api-clusterrolebinding.yaml",
      "filePath": "deployment/base/treetracker-wallet-api-clusterrolebinding.yaml",
      "summary": "Binds the k8s-wait-for ClusterRole to the default ServiceAccount in the wallet-api namespace, granting the wait-for-dependency tooling its required permissions.",
      "tags": [
        "kubernetes",
        "rbac",
        "clusterrolebinding",
        "infrastructure"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/base/treetracker-wallet-api-db-migration-job.yaml",
      "type": "config",
      "name": "treetracker-wallet-api-db-migration-job.yaml",
      "filePath": "deployment/base/treetracker-wallet-api-db-migration-job.yaml",
      "summary": "Kubernetes Job run as an ArgoCD PostSync hook that executes db-migrate against the wallet schema using credentials from the database connection secret.",
      "tags": [
        "kubernetes",
        "job",
        "database-migration",
        "argocd",
        "infrastructure"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses ArgoCD PostSync hook annotations so the migration runs automatically after each sync, with backoffLimit 1 for a single retry."
    },
    {
      "id": "config:deployment/base/treetracker-wallet-api-deployment.yaml",
      "type": "config",
      "name": "treetracker-wallet-api-deployment.yaml",
      "filePath": "deployment/base/treetracker-wallet-api-deployment.yaml",
      "summary": "Kubernetes Deployment running 2 replicas of the treetracker-wallet-api-v2 container, wiring in JWT keys, database connection, and AWS S3 credentials via secret references.",
      "tags": [
        "kubernetes",
        "deployment",
        "container",
        "infrastructure",
        "secrets"
      ],
      "complexity": "moderate"
    },
    {
      "id": "config:deployment/base/treetracker-wallet-api-mapping.yaml",
      "type": "config",
      "name": "treetracker-wallet-api-mapping.yaml",
      "filePath": "deployment/base/treetracker-wallet-api-mapping.yaml",
      "summary": "Ambassador API gateway Mapping that routes the /wallet/v2/ prefix to the treetracker-wallet-api-v2 Kubernetes service.",
      "tags": [
        "kubernetes",
        "ambassador",
        "api-gateway",
        "routing",
        "infrastructure"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/base/treetracker-wallet-api-service.yaml",
      "type": "config",
      "name": "treetracker-wallet-api-service.yaml",
      "filePath": "deployment/base/treetracker-wallet-api-service.yaml",
      "summary": "Kubernetes Service exposing the treetracker-wallet-api-v2 deployment on port 80, forwarding to container port 3006.",
      "tags": [
        "kubernetes",
        "service",
        "networking",
        "infrastructure"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:docs/api/postman/postman_environment.development.json",
      "type": "config",
      "name": "postman_environment.development.json",
      "filePath": "docs/api/postman/postman_environment.development.json",
      "summary": "Postman environment definition for the development deployment of treetracker-wallet-api, providing apiKey, baseUrl (dev-k8s.treetracker.org/wallet/), and authToken variables for manual API testing.",
      "tags": [
        "configuration",
        "api-schema",
        "postman",
        "environment",
        "development"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:docs/api/postman/postman_environment.localhost.json",
      "type": "config",
      "name": "postman_environment.localhost.json",
      "filePath": "docs/api/postman/postman_environment.localhost.json",
      "summary": "Postman environment definition for running treetracker-wallet-api requests against a local instance, providing apiKey, baseUrl, and authToken variables for manual API testing.",
      "tags": [
        "configuration",
        "api-schema",
        "postman",
        "environment",
        "localhost"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:docs/api/postman/postman_environment.production.json",
      "type": "config",
      "name": "postman_environment.production.json",
      "filePath": "docs/api/postman/postman_environment.production.json",
      "summary": "Postman environment definition for the production deployment of treetracker-wallet-api, providing apiKey, baseUrl (prod-k8s.treetracker.org/wallet/), and authToken variables for manual API testing.",
      "tags": [
        "configuration",
        "api-schema",
        "postman",
        "environment",
        "production"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:docs/api/postman/postman_environment.test.json",
      "type": "config",
      "name": "postman_environment.test.json",
      "filePath": "docs/api/postman/postman_environment.test.json",
      "summary": "Postman environment definition for testing treetracker-wallet-api, providing apiKey, baseUrl, and authToken variables for manual API testing against the test environment.",
      "tags": [
        "configuration",
        "api-schema",
        "postman",
        "environment",
        "test"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:docs/api/postman/treetracker-wallet-api-collection.json",
      "type": "config",
      "name": "treetracker-wallet-api-collection.json",
      "filePath": "docs/api/postman/treetracker-wallet-api-collection.json",
      "summary": "Postman collection (schema v2.1.0) documenting the treetracker-wallet-api HTTP surface: tokens (list/get details), wallets (list, get by name, create managed wallet), transfers (move/request/send tokens, list by state), trust relationships (list, request, get by id), account authentication, and the wallet event stream. Each request specifies bearer auth, TREETRACKER-API-KEY header, and example responses, and is parameterized with {{BASE_URL}}, {{API_KEY}}, and {{BEARER_TOKEN}} variables shared with the environment files.",
      "tags": [
        "api-schema",
        "documentation",
        "postman",
        "rest-api",
        "configuration"
      ],
      "complexity": "complex",
      "languageNotes": "Postman Collection v2.1.0 format: nested item folders represent resource groups (tokens, wallets, transfers, trust relationships), each leaf item is a single HTTP request with auth, headers, URL template, and saved example responses."
    },
    {
      "id": "file:scripts/user/auth.sh",
      "type": "file",
      "name": "auth.sh",
      "filePath": "scripts/user/auth.sh",
      "summary": "One-line curl command that POSTs to the local /auth endpoint with a hardcoded TREETRACKER-API-KEY header, used for manual developer testing of the wallet API's authentication route.",
      "tags": [
        "script",
        "manual-testing",
        "curl",
        "authentication",
        "hardcoded-credentials"
      ],
      "complexity": "simple",
      "languageNotes": "Single unparameterized curl invocation with an embedded API key; intended as a scratch dev script, not production tooling."
    },
    {
      "id": "file:scripts/user/env.sh",
      "type": "file",
      "name": "env.sh",
      "filePath": "scripts/user/env.sh",
      "summary": "Zsh script that exports shell environment variables (API_ACCESS, CONTENT_TYPE, HEADERS, BEARER) preloaded with a hardcoded API key and JWT bearer token, meant to be sourced before running manual curl test sessions against the wallet API.",
      "tags": [
        "script",
        "environment-variables",
        "manual-testing",
        "hardcoded-credentials"
      ],
      "complexity": "simple",
      "languageNotes": "Uses export to make composed curl header strings available to a shell session; several lines are commented-out alternates (BASE_URL)."
    },
    {
      "id": "file:scripts/user/other.sh",
      "type": "file",
      "name": "other.sh",
      "filePath": "scripts/user/other.sh",
      "summary": "One-line curl command that hits the wallet API root at localhost:3006 with hardcoded API key and JWT bearer token headers, used for ad hoc manual endpoint testing.",
      "tags": [
        "script",
        "manual-testing",
        "curl",
        "hardcoded-credentials"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:scripts/user/out.json",
      "type": "config",
      "name": "out.json",
      "filePath": "scripts/user/out.json",
      "summary": "Captured sample JSON response from a manual API test run, containing a list of tree records (token, map_url, image_url) and an associated wallet name.",
      "tags": [
        "fixture",
        "api-response",
        "sample-data"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/user/sha512.sh",
      "type": "file",
      "name": "sha512.sh",
      "filePath": "scripts/user/sha512.sh",
      "summary": "One-line script that pipes a hardcoded string into shasum to compute its SHA-512 hash, used to generate or verify a password hash value during manual testing.",
      "tags": [
        "script",
        "hashing",
        "manual-testing"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:.eslintignore",
      "type": "config",
      "name": ".eslintignore",
      "filePath": ".eslintignore",
      "summary": "ESLint ignore list excluding the docs/ and scripts/ directories from lint checks.",
      "tags": [
        "configuration",
        "linting",
        "build-system"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:.github/pull_request_template.md",
      "type": "document",
      "name": "pull_request_template.md",
      "filePath": ".github/pull_request_template.md",
      "summary": "GitHub pull request template prompting contributors for a description, linked issue, breaking-change notes, and other useful information.",
      "tags": [
        "documentation",
        "github",
        "process"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:.huskyrc",
      "type": "config",
      "name": ".huskyrc",
      "filePath": ".huskyrc",
      "summary": "Husky Git hooks configuration running lint on pre-commit and commitlint on commit-msg.",
      "tags": [
        "configuration",
        "git-hooks",
        "ci-cd"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:.releaserc",
      "type": "config",
      "name": ".releaserc",
      "filePath": ".releaserc",
      "summary": "semantic-release configuration for the master and v1.10 branches, wiring commit-analyzer, changelog, npm, git, and GitHub plugins to automate versioned releases.",
      "tags": [
        "configuration",
        "ci-cd",
        "release-automation"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:CODEOWNERS",
      "type": "config",
      "name": "CODEOWNERS",
      "filePath": "CODEOWNERS",
      "summary": "GitHub CODEOWNERS file assigning all repository paths to two default reviewers.",
      "tags": [
        "configuration",
        "github",
        "governance"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:__tests__/e2e/.mocharc.js",
      "type": "config",
      "name": ".mocharc.js",
      "filePath": "__tests__/e2e/.mocharc.js",
      "summary": "Mocha configuration for the end-to-end test suite, defining spec globs, a bootstrap require, reporter, and a 15-second timeout.",
      "tags": [
        "configuration",
        "test",
        "e2e"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:__tests__/e2e/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "__tests__/e2e/README.md",
      "summary": "Documentation for the end-to-end test suite explaining how to set up and run the tests against a running instance of the wallet API.",
      "tags": [
        "documentation",
        "test",
        "e2e"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:commitlint.config.js",
      "type": "config",
      "name": "commitlint.config.js",
      "filePath": "commitlint.config.js",
      "summary": "Commitlint configuration extending the conventional-commits rule set to enforce commit message format.",
      "tags": [
        "configuration",
        "git-hooks",
        "ci-cd"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:config/.gitkeep",
      "type": "config",
      "name": ".gitkeep",
      "filePath": "config/.gitkeep",
      "summary": "Empty placeholder file that keeps the config/ directory present in Git despite having no tracked config contents by default.",
      "tags": [
        "configuration",
        "placeholder"
      ],
      "complexity": "simple"
    },
    {
      "id": "document:database/README.md",
      "type": "document",
      "name": "README.md",
      "filePath": "database/README.md",
      "summary": "Documentation for the database/migrations directory describing the db-migrate tool, its command reference, and migration syntax links.",
      "tags": [
        "documentation",
        "database",
        "migration"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200826045032-CreateSchemaWallets.js",
      "type": "file",
      "name": "20200826045032-CreateSchemaWallets.js",
      "filePath": "database/migrations/20200826045032-CreateSchemaWallets.js",
      "summary": "db-migrate migration stub for creating the wallets schema; the CREATE SCHEMA statement is commented out so the up/down steps are effectively no-ops.",
      "tags": [
        "database",
        "migration",
        "schema"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200826045033-AddUUIDExtension.js",
      "type": "file",
      "name": "20200826045033-AddUUIDExtension.js",
      "filePath": "database/migrations/20200826045033-AddUUIDExtension.js",
      "summary": "db-migrate migration that enables the PostgreSQL uuid-ossp extension used to generate UUID primary keys across wallet tables.",
      "tags": [
        "database",
        "migration",
        "postgresql"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200826045033-CreateTableTransaction.js",
      "type": "file",
      "name": "20200826045033-CreateTableTransaction.js",
      "filePath": "database/migrations/20200826045033-CreateTableTransaction.js",
      "summary": "db-migrate migration creating the transaction table that records wallet-to-wallet token movements.",
      "tags": [
        "database",
        "migration",
        "schema"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200830050917-CreateEnumTransferState.js",
      "type": "file",
      "name": "20200830050917-CreateEnumTransferState.js",
      "filePath": "database/migrations/20200830050917-CreateEnumTransferState.js",
      "summary": "db-migrate migration creating the transfer_state_type PostgreSQL enum (e.g. pending, fulfilled, cancelled) used by the transfer table.",
      "tags": [
        "database",
        "migration",
        "enum"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200830050921-CreateEnumTransferType.js",
      "type": "file",
      "name": "20200830050921-CreateEnumTransferType.js",
      "filePath": "database/migrations/20200830050921-CreateEnumTransferType.js",
      "summary": "db-migrate migration creating the transfer_type PostgreSQL enum used to classify transfer records.",
      "tags": [
        "database",
        "migration",
        "enum"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200901213040-CreateEnumEntityTrustReqType.js",
      "type": "file",
      "name": "20200901213040-CreateEnumEntityTrustReqType.js",
      "filePath": "database/migrations/20200901213040-CreateEnumEntityTrustReqType.js",
      "summary": "db-migrate migration creating the entity_trust_request_type PostgreSQL enum used to classify trust requests between wallets.",
      "tags": [
        "database",
        "migration",
        "enum"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200901213111-CreateEnumEntityTrustType.js",
      "type": "file",
      "name": "20200901213111-CreateEnumEntityTrustType.js",
      "filePath": "database/migrations/20200901213111-CreateEnumEntityTrustType.js",
      "summary": "db-migrate migration creating the entity_trust_type PostgreSQL enum describing the kind of trust relationship between wallets.",
      "tags": [
        "database",
        "migration",
        "enum"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200901213222-CreateEnumEntityTrustStateType.js",
      "type": "file",
      "name": "20200901213222-CreateEnumEntityTrustStateType.js",
      "filePath": "database/migrations/20200901213222-CreateEnumEntityTrustStateType.js",
      "summary": "db-migrate migration creating the entity_trust_state_type PostgreSQL enum representing the state of a trust relationship.",
      "tags": [
        "database",
        "migration",
        "enum"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200901213241-CreateEnumTransferStateChangeApprovalType.js",
      "type": "file",
      "name": "20200901213241-CreateEnumTransferStateChangeApprovalType.js",
      "filePath": "database/migrations/20200901213241-CreateEnumTransferStateChangeApprovalType.js",
      "summary": "db-migrate migration creating the transfer_state_change_approval_type PostgreSQL enum used to record approval outcomes for transfer state changes.",
      "tags": [
        "database",
        "migration",
        "enum"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200901213252-CreateEnumWalletEventType.js",
      "type": "file",
      "name": "20200901213252-CreateEnumWalletEventType.js",
      "filePath": "database/migrations/20200901213252-CreateEnumWalletEventType.js",
      "summary": "db-migrate migration creating the wallet_event_type PostgreSQL enum used to classify wallet event log entries.",
      "tags": [
        "database",
        "migration",
        "enum"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200901213253-CreateTableToken.js",
      "type": "file",
      "name": "20200901213253-CreateTableToken.js",
      "filePath": "database/migrations/20200901213253-CreateTableToken.js",
      "summary": "db-migrate migration creating the token table with wallet_id, capture_id, and transfer_pending fields tracking each tree token's custody and pending-transfer status.",
      "tags": [
        "database",
        "migration",
        "schema"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200901213254-CreateTableTransfer.js",
      "type": "file",
      "name": "20200901213254-CreateTableTransfer.js",
      "filePath": "database/migrations/20200901213254-CreateTableTransfer.js",
      "summary": "db-migrate migration creating the transfer table that models token/bundle transfer requests between wallets, including state and type enum columns.",
      "tags": [
        "database",
        "migration",
        "schema"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200901222910-CreateTableWallet-Event.js",
      "type": "file",
      "name": "20200901222910-CreateTableWallet-Event.js",
      "filePath": "database/migrations/20200901222910-CreateTableWallet-Event.js",
      "summary": "db-migrate migration creating the wallet_event table that logs wallet-related events using the wallet_event_type enum.",
      "tags": [
        "database",
        "migration",
        "schema"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200902014751-CreateTableEntity-Trust.js",
      "type": "file",
      "name": "20200902014751-CreateTableEntity-Trust.js",
      "filePath": "database/migrations/20200902014751-CreateTableEntity-Trust.js",
      "summary": "db-migrate migration creating the entity_trust table that records trust relationships and requests between actor and target wallets.",
      "tags": [
        "database",
        "migration",
        "schema"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200902014758-CreateTableEntity-Trust-Log.js",
      "type": "file",
      "name": "20200902014758-CreateTableEntity-Trust-Log.js",
      "filePath": "database/migrations/20200902014758-CreateTableEntity-Trust-Log.js",
      "summary": "db-migrate migration that creates the entity_trust_log table with trust-relationship and audit columns (wallet_trust_id, actor_wallet_id, target_wallet_id, type, state, timestamps).",
      "tags": [
        "database",
        "migration",
        "ddl",
        "table-creation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200902014805-CreateTableTransfer-Audit.js",
      "type": "file",
      "name": "20200902014805-CreateTableTransfer-Audit.js",
      "filePath": "database/migrations/20200902014805-CreateTableTransfer-Audit.js",
      "summary": "db-migrate migration that creates the transfer_audit table for tracking transfer state changes with processed_at timestamp and approval_type.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "table-creation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200912104451-FixAutoIncrementBug.js",
      "type": "file",
      "name": "20200912104451-FixAutoIncrementBug.js",
      "filePath": "database/migrations/20200912104451-FixAutoIncrementBug.js",
      "summary": "db-migrate migration placeholder addressing an auto-increment bug; up and down handlers are both no-ops, recording the fix as a migration history entry only.",
      "tags": [
        "database",
        "migration",
        "no-op",
        "schema-history"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200916235257-CreateTableApi-Key.js",
      "type": "file",
      "name": "20200916235257-CreateTableApi-Key.js",
      "filePath": "database/migrations/20200916235257-CreateTableApi-Key.js",
      "summary": "db-migrate migration that creates the api_key table storing hashed API keys with key, hash, salt, name, and a tree_token_api_access flag.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "table-creation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20200917183542-CreateTableWallet.js",
      "type": "file",
      "name": "20200917183542-CreateTableWallet.js",
      "filePath": "database/migrations/20200917183542-CreateTableWallet.js",
      "summary": "db-migrate migration that creates the core wallet table with id, name, password, salt, and logo_url columns.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "table-creation"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20201127234338-AllowNullPasswordWallet.js",
      "type": "file",
      "name": "20201127234338-AllowNullPasswordWallet.js",
      "filePath": "database/migrations/20201127234338-AllowNullPasswordWallet.js",
      "summary": "db-migrate migration that relaxes the wallet.password column to allow NULL values, supporting wallets without local credentials.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "schema-change"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20201207011556-RemoveUnnecessaryWalletFields",
      "type": "file",
      "name": "20201207011556-RemoveUnnecessaryWalletFields",
      "filePath": "database/migrations/20201207011556-RemoveUnnecessaryWalletFields",
      "summary": "db-migrate migration intended to remove unnecessary wallet columns; up and down handlers are both no-ops, so no schema change is executed by this file.",
      "tags": [
        "database",
        "migration",
        "no-op",
        "schema-history"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20201209064928-RenameTableEntityTrust.js",
      "type": "file",
      "name": "20201209064928-RenameTableEntityTrust.js",
      "filePath": "database/migrations/20201209064928-RenameTableEntityTrust.js",
      "summary": "db-migrate migration that renames the entity_trust table to wallet_trust, part of a wallet-centric domain renaming pass.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "schema-refactor"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20201209065300-RenameTableEntityTrustLog.js",
      "type": "file",
      "name": "20201209065300-RenameTableEntityTrustLog.js",
      "filePath": "database/migrations/20201209065300-RenameTableEntityTrustLog.js",
      "summary": "db-migrate migration that renames the entity_trust_log table to wallet_trust_log, companion to the entity_trust rename.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "schema-refactor"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210211020241-AddDefaultIdTransactionTable.js",
      "type": "file",
      "name": "20210211020241-AddDefaultIdTransactionTable.js",
      "filePath": "database/migrations/20210211020241-AddDefaultIdTransactionTable.js",
      "summary": "db-migrate migration that reads paired up/down SQL files from the sqls/ directory and runs them to add a default id generation strategy to the transaction table.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "sql-script"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210211020257-AddDefaultIdTransferTable.js",
      "type": "file",
      "name": "20210211020257-AddDefaultIdTransferTable.js",
      "filePath": "database/migrations/20210211020257-AddDefaultIdTransferTable.js",
      "summary": "db-migrate migration that reads paired up/down SQL files from the sqls/ directory and runs them to add a default id generation strategy to the transfer table.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "sql-script"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210211020301-AddDefaultIdTokenTable.js",
      "type": "file",
      "name": "20210211020301-AddDefaultIdTokenTable.js",
      "filePath": "database/migrations/20210211020301-AddDefaultIdTokenTable.js",
      "summary": "db-migrate migration that reads paired up/down SQL files from the sqls/ directory and runs them to add a default id generation strategy to the token table.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "sql-script"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210211020304-AddDefaultIdWalletTable.js",
      "type": "file",
      "name": "20210211020304-AddDefaultIdWalletTable.js",
      "filePath": "database/migrations/20210211020304-AddDefaultIdWalletTable.js",
      "summary": "db-migrate migration that reads paired up/down SQL files from the sqls/ directory and runs them to add a default id generation strategy to the wallet table.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "sql-script"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210211020331-AddDefaultIdApiKeyTable.js",
      "type": "file",
      "name": "20210211020331-AddDefaultIdApiKeyTable.js",
      "filePath": "database/migrations/20210211020331-AddDefaultIdApiKeyTable.js",
      "summary": "db-migrate migration that reads paired up/down SQL files from the sqls/ directory and runs them to add a default id generation strategy to the api_key table.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "sql-script"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210211020340-AddDefaultIdTransferAuditTable.js",
      "type": "file",
      "name": "20210211020340-AddDefaultIdTransferAuditTable.js",
      "filePath": "database/migrations/20210211020340-AddDefaultIdTransferAuditTable.js",
      "summary": "db-migrate migration that reads paired up/down SQL files from the sqls/ directory and runs them to add a default id generation strategy to the transfer_audit table.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "sql-script"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210211020347-AddDefaultIdWalletEventTable.js",
      "type": "file",
      "name": "20210211020347-AddDefaultIdWalletEventTable.js",
      "filePath": "database/migrations/20210211020347-AddDefaultIdWalletEventTable.js",
      "summary": "db-migrate migration that reads paired up/down SQL files from the sqls/ directory and runs them to add a default id generation strategy to the wallet_event table.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "sql-script"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210211020352-AddDefaultIdWalletTrustTable.js",
      "type": "file",
      "name": "20210211020352-AddDefaultIdWalletTrustTable.js",
      "filePath": "database/migrations/20210211020352-AddDefaultIdWalletTrustTable.js",
      "summary": "db-migrate migration that reads paired up/down SQL files from the sqls/ directory and runs them to add a default id generation strategy to the wallet_trust table.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "sql-script"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210211020356-AddDefaultIdWalletTrustLogTable.js",
      "type": "file",
      "name": "20210211020356-AddDefaultIdWalletTrustLogTable.js",
      "filePath": "database/migrations/20210211020356-AddDefaultIdWalletTrustLogTable.js",
      "summary": "db-migrate migration that reads paired up/down SQL files from the sqls/ directory and runs them to add a default id generation strategy to the wallet_trust_log table.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "sql-script"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210226210059-AddTransferPendingIdIndex.js",
      "type": "file",
      "name": "20210226210059-AddTransferPendingIdIndex.js",
      "filePath": "database/migrations/20210226210059-AddTransferPendingIdIndex.js",
      "summary": "db-migrate migration that creates an index token_transfer_pending_id_idx on token(transfer_pending_id) to speed up pending-transfer lookups.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "indexing"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210226234313-AddUniqueConstraintWalletName.js",
      "type": "file",
      "name": "20210226234313-AddUniqueConstraintWalletName.js",
      "filePath": "database/migrations/20210226234313-AddUniqueConstraintWalletName.js",
      "summary": "db-migrate migration that adds a unique index wallet_name_idx on wallet(name), enforcing wallet name uniqueness at the database level.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "indexing",
        "constraint"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210304014730-AddUniqueConstraintCaptureId.js",
      "type": "file",
      "name": "20210304014730-AddUniqueConstraintCaptureId.js",
      "filePath": "database/migrations/20210304014730-AddUniqueConstraintCaptureId.js",
      "summary": "db-migrate migration that adds a unique index capture_id_idx on token(capture_id), enforcing one token per capture.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "indexing",
        "constraint"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210401005831-AddClaimBoolean.js",
      "type": "file",
      "name": "20210401005831-AddClaimBoolean.js",
      "filePath": "database/migrations/20210401005831-AddClaimBoolean.js",
      "summary": "db-migrate migration that adds a non-null claim boolean column (default false) to the token table, marking whether a token has been claimed.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "schema-change"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210401015411-AddColClaimBooleanTransferTable.js",
      "type": "file",
      "name": "20210401015411-AddColClaimBooleanTransferTable.js",
      "filePath": "database/migrations/20210401015411-AddColClaimBooleanTransferTable.js",
      "summary": "db-migrate migration that adds a claim boolean column to the transfer table, mirroring the token-level claim flag for transfer records.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "schema-change"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210419015057-AddColClaimBooleanTransactionTable.js",
      "type": "file",
      "name": "20210419015057-AddColClaimBooleanTransactionTable.js",
      "filePath": "database/migrations/20210419015057-AddColClaimBooleanTransactionTable.js",
      "summary": "db-migrate migration that adds a claim boolean column to the transaction table, extending the claim flag to the transaction record type.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "schema-change"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210818020849-CreateIndexTokenWalletId.js",
      "type": "file",
      "name": "20210818020849-CreateIndexTokenWalletId.js",
      "filePath": "database/migrations/20210818020849-CreateIndexTokenWalletId.js",
      "summary": "db-migrate migration that creates an index token_wallet_id_idx on token(wallet_id) to speed up per-wallet token lookups.",
      "tags": [
        "database",
        "migration",
        "ddl",
        "indexing"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210818210436-TransferActiveDefault.js",
      "type": "file",
      "name": "20210818210436-TransferActiveDefault.js",
      "filePath": "database/migrations/20210818210436-TransferActiveDefault.js",
      "summary": "db-migrate migration that changes the transfer.active column to boolean NOT NULL with a default of true, with a down migration reverting the column back to a plain boolean.",
      "tags": [
        "migration",
        "database",
        "schema-change"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210818211159-WalletTrustActiveDefault.js",
      "type": "file",
      "name": "20210818211159-WalletTrustActiveDefault.js",
      "filePath": "database/migrations/20210818211159-WalletTrustActiveDefault.js",
      "summary": "db-migrate migration that sets a NOT NULL default of true on the wallet_trust.active column, with a matching down migration.",
      "tags": [
        "migration",
        "database",
        "schema-change"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210818213054-TransferClaimNotNull.js",
      "type": "file",
      "name": "20210818213054-TransferClaimNotNull.js",
      "filePath": "database/migrations/20210818213054-TransferClaimNotNull.js",
      "summary": "db-migrate migration that enforces NOT NULL on the transfer.claim column, with a down migration that relaxes the constraint again.",
      "tags": [
        "migration",
        "database",
        "schema-change"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20210819001907-TransactionClaimDefault.js",
      "type": "file",
      "name": "20210819001907-TransactionClaimDefault.js",
      "filePath": "database/migrations/20210819001907-TransactionClaimDefault.js",
      "summary": "db-migrate migration that adds a default value to the transaction.claim column, with a corresponding down migration.",
      "tags": [
        "migration",
        "database",
        "schema-change"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20211007223144-AddCreatedAtWallet.js",
      "type": "file",
      "name": "20211007223144-AddCreatedAtWallet.js",
      "filePath": "database/migrations/20211007223144-AddCreatedAtWallet.js",
      "summary": "db-migrate migration that adds a created_at timestamp column to the wallet table, with a down migration removing it.",
      "tags": [
        "migration",
        "database",
        "schema-change"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20230314184543-add-batch-create-check.js",
      "type": "file",
      "name": "20230314184543-add-batch-create-check.js",
      "filePath": "database/migrations/20230314184543-add-batch-create-check.js",
      "summary": "db-migrate migration that loads and runs paired up/down SQL files (sqls/20230314184543-add-batch-create-check-*.sql) to add a database check constraint related to batch creation.",
      "tags": [
        "migration",
        "database",
        "schema-change",
        "constraint"
      ],
      "complexity": "moderate",
      "languageNotes": "Follows the db-migrate convention of delegating the actual DDL to external .sql files read asynchronously and executed via db.runSql."
    },
    {
      "id": "file:database/migrations/20230529135030-add-about.js",
      "type": "file",
      "name": "20230529135030-add-about.js",
      "filePath": "database/migrations/20230529135030-add-about.js",
      "summary": "db-migrate migration that loads and runs paired up/down SQL files to add an 'about' field to a table, following the external-SQL-file migration pattern.",
      "tags": [
        "migration",
        "database",
        "schema-change"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:database/migrations/20230916050749-AlterWalletEventTypeEnum.js",
      "type": "file",
      "name": "20230916050749-AlterWalletEventTypeEnum.js",
      "filePath": "database/migrations/20230916050749-AlterWalletEventTypeEnum.js",
      "summary": "db-migrate migration that adds 'login' and 'wallet_created' values to the wallet_event_type enum, with a down migration that rebuilds the original enum and swaps the column type back.",
      "tags": [
        "migration",
        "database",
        "schema-change",
        "enum"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20230916052558-AddPayloadToWalletEventTable.js.js",
      "type": "file",
      "name": "20230916052558-AddPayloadToWalletEventTable.js.js",
      "filePath": "database/migrations/20230916052558-AddPayloadToWalletEventTable.js.js",
      "summary": "db-migrate migration that adds a required JSON payload column to the wallet_event table, with a down migration that removes it.",
      "tags": [
        "migration",
        "database",
        "schema-change"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/migrations/20240412001733-AddCoverUrl.js",
      "type": "file",
      "name": "20240412001733-AddCoverUrl.js",
      "filePath": "database/migrations/20240412001733-AddCoverUrl.js",
      "summary": "db-migrate migration that loads and runs paired up/down SQL files to add a cover_url column, following the external-SQL-file migration pattern.",
      "tags": [
        "migration",
        "database",
        "schema-change"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:database/migrations/20240422141722-add-display-name.js",
      "type": "file",
      "name": "20240422141722-add-display-name.js",
      "filePath": "database/migrations/20240422141722-add-display-name.js",
      "summary": "db-migrate migration that loads and runs paired up/down SQL files to add a display_name column to a table.",
      "tags": [
        "migration",
        "database",
        "schema-change"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:database/treetracker-wallet-seed-schema-only.pgsql",
      "type": "file",
      "name": "treetracker-wallet-seed-schema-only.pgsql",
      "filePath": "database/treetracker-wallet-seed-schema-only.pgsql",
      "summary": "PostgreSQL schema-only dump (pg_dump output) seeding the legacy treetracker public schema tables (region, tree_region, trees, entity, entity_role) that the wallet API's migrations and tests build on for local development and CI.",
      "tags": [
        "database",
        "schema",
        "seed-data",
        "sql-dump"
      ],
      "complexity": "moderate",
      "languageNotes": "Raw pg_dump DDL output with SET session directives and CREATE TABLE statements; no application logic."
    },
    {
      "id": "config:deployment/overlays/development/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "deployment/overlays/development/kustomization.yaml",
      "summary": "Kustomize overlay for the development environment that applies mapping.yaml as a strategic-merge patch on top of the shared base deployment resources.",
      "tags": [
        "configuration",
        "kubernetes",
        "deployment",
        "kustomize"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/overlays/development/mapping.yaml",
      "type": "config",
      "name": "mapping.yaml",
      "filePath": "deployment/overlays/development/mapping.yaml",
      "summary": "Ambassador API gateway Mapping resource for the development overlay, configuring permissive CORS (wildcard origin) and allowed methods/headers for treetracker-wallet-api-v2.",
      "tags": [
        "configuration",
        "kubernetes",
        "api-gateway",
        "cors"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/overlays/production/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "deployment/overlays/production/kustomization.yaml",
      "summary": "Kustomize overlay for the production environment that applies mapping.yaml as a strategic-merge patch on top of the shared base deployment resources.",
      "tags": [
        "configuration",
        "kubernetes",
        "deployment",
        "kustomize"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/overlays/production/mapping.yaml",
      "type": "config",
      "name": "mapping.yaml",
      "filePath": "deployment/overlays/production/mapping.yaml",
      "summary": "Ambassador API gateway Mapping resource for the production overlay, restricting CORS to the production wallet-admin origin for treetracker-wallet-api-v2.",
      "tags": [
        "configuration",
        "kubernetes",
        "api-gateway",
        "cors"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/overlays/test/kustomization.yaml",
      "type": "config",
      "name": "kustomization.yaml",
      "filePath": "deployment/overlays/test/kustomization.yaml",
      "summary": "Kustomize overlay for the test environment that applies mapping.yaml as a strategic-merge patch on top of the shared base deployment resources.",
      "tags": [
        "configuration",
        "kubernetes",
        "deployment",
        "kustomize"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:deployment/overlays/test/mapping.yaml",
      "type": "config",
      "name": "mapping.yaml",
      "filePath": "deployment/overlays/test/mapping.yaml",
      "summary": "Ambassador API gateway Mapping resource for the test overlay, configuring permissive CORS (wildcard origin) and allowed methods/headers for treetracker-wallet-api-v2.",
      "tags": [
        "configuration",
        "kubernetes",
        "api-gateway",
        "cors"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:docs/api/postman/pre-request-script.js",
      "type": "file",
      "name": "pre-request-script.js",
      "filePath": "docs/api/postman/pre-request-script.js",
      "summary": "Postman collection pre-request script that injects the Authorization bearer token from the environment and sets the Content-Type header to JSON before each API request.",
      "tags": [
        "testing",
        "postman",
        "api-testing",
        "authentication"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:docs/api/postman/tests-script.js",
      "type": "file",
      "name": "tests-script.js",
      "filePath": "docs/api/postman/tests-script.js",
      "summary": "Postman collection test script that captures the auth token from the /auth endpoint response and stores it in the environment for use by subsequent requests.",
      "tags": [
        "testing",
        "postman",
        "api-testing",
        "authentication"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:docs/api/spec/treetracker-wallet-api-v1-10.yaml",
      "type": "config",
      "name": "treetracker-wallet-api-v1-10.yaml",
      "filePath": "docs/api/spec/treetracker-wallet-api-v1-10.yaml",
      "summary": "OpenAPI specification for version 1.10 of the treetracker-wallet-api, documenting wallet, trust, and transfer endpoints, request/response schemas, and security requirements as of that release.",
      "tags": [
        "api-schema",
        "documentation",
        "openapi",
        "schema-definition"
      ],
      "complexity": "complex"
    },
    {
      "id": "config:docs/api/spec/treetracker-wallet-api.yaml",
      "type": "config",
      "name": "treetracker-wallet-api.yaml",
      "filePath": "docs/api/spec/treetracker-wallet-api.yaml",
      "summary": "Current OpenAPI specification for treetracker-wallet-api, defining server URLs, all wallet/trust/transfer/token endpoints, request/response schemas, and security scheme for the public REST API.",
      "tags": [
        "api-schema",
        "documentation",
        "openapi",
        "schema-definition"
      ],
      "complexity": "complex"
    },
    {
      "id": "file:scripts/create/clean-up-duplicates.js",
      "type": "file",
      "name": "clean-up-duplicates.js",
      "filePath": "scripts/create/clean-up-duplicates.js",
      "summary": "One-off maintenance script that reads UUIDs from a CSV file and deactivates duplicate active tree captures in the database, keeping only the first active record per UUID inside a knex transaction.",
      "tags": [
        "script",
        "database",
        "data-cleanup",
        "one-off"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:scripts/create/create-tokens-csv.js",
      "type": "file",
      "name": "create-tokens-csv.js",
      "filePath": "scripts/create/create-tokens-csv.js",
      "summary": "One-off script that reads capture IDs from a CSV file, looks up a target wallet by name, and creates wallet.token records for un-tokenized, active captures inside a dry-run-capable knex transaction.",
      "tags": [
        "script",
        "database",
        "token-creation",
        "batch-processing",
        "one-off"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:scripts/create/create-tokens-fcc.js",
      "type": "file",
      "name": "create-tokens-fcc.js",
      "filePath": "scripts/create/create-tokens-fcc.js",
      "summary": "One-off script that paginates through un-tokenized, approved tree captures belonging to a specific organization tree and bulk-creates wallet.token records for the 'FCC' wallet inside a knex transaction.",
      "tags": [
        "script",
        "database",
        "token-creation",
        "batch-processing",
        "one-off"
      ],
      "complexity": "moderate"
    },
    {
      "id": "file:scripts/create/create-tokens-haiti-tree-project.js",
      "type": "file",
      "name": "create-tokens-haiti-tree-project.js",
      "filePath": "scripts/create/create-tokens-haiti-tree-project.js",
      "summary": "One-off maintenance script that mints wallet.token rows for unminted approved tree captures owned by TheHaitiTreeProject organization hierarchy, paging 3000 rows at a time inside a single Knex transaction with an optional dry-run rollback.",
      "tags": [
        "script",
        "database",
        "data-migration",
        "one-off",
        "wallet"
      ],
      "complexity": "moderate",
      "languageNotes": "Uses a raw SQL subquery calling the getEntityRelationshipChildren() Postgres function to resolve organization descendants before batching capture rows."
    },
    {
      "id": "function:scripts/create/create-tokens-haiti-tree-project.js:getRandomArbitrary",
      "type": "function",
      "name": "getRandomArbitrary",
      "filePath": "scripts/create/create-tokens-haiti-tree-project.js",
      "lineRange": [
        1,
        3
      ],
      "summary": "Returns a random floating-point number between min and max; unused leftover helper in this script.",
      "tags": [
        "utility",
        "random",
        "unused"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/create/create-tokens-kijani.js",
      "type": "file",
      "name": "create-tokens-kijani.js",
      "filePath": "scripts/create/create-tokens-kijani.js",
      "summary": "One-off maintenance script that mints wallet.token rows for unminted approved tree captures belonging to the KijaniForestry organization (id 7), run inside a single Knex transaction.",
      "tags": [
        "script",
        "database",
        "data-migration",
        "one-off",
        "wallet"
      ],
      "complexity": "moderate",
      "languageNotes": "Near-duplicate of create-tokens-haiti-tree-project.js with a simpler, non-paginated raw SQL WHERE clause and hard-coded organization id."
    },
    {
      "id": "function:scripts/create/create-tokens-kijani.js:getRandomArbitrary",
      "type": "function",
      "name": "getRandomArbitrary",
      "filePath": "scripts/create/create-tokens-kijani.js",
      "lineRange": [
        1,
        3
      ],
      "summary": "Returns a random floating-point number between min and max; unused leftover helper in this script.",
      "tags": [
        "utility",
        "random",
        "unused"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/demo/create-demo-wallet-simple.js",
      "type": "file",
      "name": "create-demo-wallet-simple.js",
      "filePath": "scripts/demo/create-demo-wallet-simple.js",
      "summary": "Demo/seed script that creates a fake wallet with an API key and salted password hash, then bulk-inserts 5000 fake wallet.token rows with random UUID capture ids for local testing.",
      "tags": [
        "script",
        "database",
        "seed-data",
        "demo",
        "wallet"
      ],
      "complexity": "moderate",
      "languageNotes": "Inlines its own sha512 HMAC password-hashing helper rather than importing scripts/user/sha.js."
    },
    {
      "id": "function:scripts/demo/create-demo-wallet-simple.js:getRandomArbitrary",
      "type": "function",
      "name": "getRandomArbitrary",
      "filePath": "scripts/demo/create-demo-wallet-simple.js",
      "lineRange": [
        2,
        4
      ],
      "summary": "Returns a random floating-point number between min and max; unused leftover helper in this script.",
      "tags": [
        "utility",
        "random",
        "unused"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:scripts/demo/create-demo-wallet-simple.js:sha512",
      "type": "function",
      "name": "sha512",
      "filePath": "scripts/demo/create-demo-wallet-simple.js",
      "lineRange": [
        20,
        25
      ],
      "summary": "Computes a salted SHA-512 HMAC hex digest of a password, used to set the demo wallet's stored password hash.",
      "tags": [
        "security",
        "hashing",
        "password",
        "utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/demo/create-demo-wallet.js",
      "type": "file",
      "name": "create-demo-wallet.js",
      "filePath": "scripts/demo/create-demo-wallet.js",
      "summary": "Full demo/seed script that creates a fake wallet with API key and password hash, a fake planter, 1000 fake tree captures with randomized geolocation and photo URLs, and a matching wallet.token per capture, all committed in one Knex transaction.",
      "tags": [
        "script",
        "database",
        "seed-data",
        "demo",
        "wallet"
      ],
      "complexity": "complex",
      "languageNotes": "Extends create-demo-wallet-simple.js by also seeding public.planter and public.trees rows and computing PostGIS geometry via ST_SetSRID/ST_MakePoint raw SQL."
    },
    {
      "id": "function:scripts/demo/create-demo-wallet.js:getRandomArbitrary",
      "type": "function",
      "name": "getRandomArbitrary",
      "filePath": "scripts/demo/create-demo-wallet.js",
      "lineRange": [
        1,
        3
      ],
      "summary": "Returns a random floating-point number between min and max, used here to generate randomized capture latitude/longitude and to pick random demo image URLs.",
      "tags": [
        "utility",
        "random"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:scripts/demo/create-demo-wallet.js:sha512",
      "type": "function",
      "name": "sha512",
      "filePath": "scripts/demo/create-demo-wallet.js",
      "lineRange": [
        17,
        24
      ],
      "summary": "Computes a salted SHA-512 HMAC hex digest of a password, used to set the demo wallet's stored password hash.",
      "tags": [
        "security",
        "hashing",
        "password",
        "utility"
      ],
      "complexity": "simple"
    },
    {
      "id": "config:scripts/demo/package.json",
      "type": "config",
      "name": "package.json",
      "filePath": "scripts/demo/package.json",
      "summary": "Standalone npm manifest for the demo seeding scripts, declaring faker, knex, and uuid as dependencies with create-demo-wallet.js as the package entry point.",
      "tags": [
        "configuration",
        "npm",
        "dependencies",
        "demo"
      ],
      "complexity": "simple"
    },
    {
      "id": "file:scripts/user/sha.js",
      "type": "file",
      "name": "sha.js",
      "filePath": "scripts/user/sha.js",
      "summary": "Small standalone script that demonstrates and prints the salted SHA-512 HMAC hash for a hard-coded key and salt, useful as a manual reference for generating wallet password hashes.",
      "tags": [
        "script",
        "security",
        "hashing",
        "utility",
        "demo"
      ],
      "complexity": "simple"
    },
    {
      "id": "function:scripts/user/sha.js:sha512",
      "type": "function",
      "name": "sha512",
      "filePath": "scripts/user/sha.js",
      "lineRange": [
        4,
        9
      ],
      "summary": "Computes a salted SHA-512 HMAC hex digest of a password using Node's crypto module.",
      "tags": [
        "security",
        "hashing",
        "password",
        "utility"
      ],
      "complexity": "simple"
    }
  ],
  "edges": [
    {
      "source": "file:__tests__/auth.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/auth.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/auth.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/bundle-transfer-cancel.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/bundle-transfer-cancel.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/bundle-transfer-cancel.spec.js",
      "target": "file:server/utils/transfer-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/bundle-transfer-cancel.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/bundle-transfer-create-accept.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/bundle-transfer-create-accept.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/bundle-transfer-create-accept.spec.js",
      "target": "file:server/utils/transfer-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/bundle-transfer-create-accept.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/bundle-transfer-decline.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/bundle-transfer-decline.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/bundle-transfer-decline.spec.js",
      "target": "file:server/utils/transfer-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/bundle-transfer-decline.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/fulfill-bundle-transfer-request.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/fulfill-bundle-transfer-request.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/fulfill-bundle-transfer-request.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/fulfill-explicity-transfer-request.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/fulfill-explicity-transfer-request.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/fulfill-explicity-transfer-request.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/get-tokens.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/get-tokens.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/get-tokens.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/integration/auth.spec.js",
      "target": "file:__tests__/integration/testUtils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/integration/auth.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/integration/auth.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/integration/bundle-transfer-decline.spec.js",
      "target": "file:__tests__/integration/testUtils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/integration/bundle-transfer-decline.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/integration/bundle-transfer-decline.spec.js",
      "target": "file:server/utils/transfer-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/integration/bundle-transfer-decline.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/integration/testUtils.js",
      "target": "file:server/infra/database/knex.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/integration/testUtils.js",
      "target": "file:server/services/JWTService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/integration/testUtils.js",
      "target": "file:server/utils/transfer-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/integration/testUtils.js",
      "target": "function:__tests__/integration/testUtils.js:register",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/integration/testUtils.js",
      "target": "function:__tests__/integration/testUtils.js:registerAndLogin",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/integration/testUtils.js",
      "target": "function:__tests__/integration/testUtils.js:clear",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/integration/testUtils.js",
      "target": "function:__tests__/integration/testUtils.js:addToken",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/integration/testUtils.js",
      "target": "function:__tests__/integration/testUtils.js:sendAndPend",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "function:__tests__/integration/testUtils.js:registerAndLogin",
      "target": "function:__tests__/integration/testUtils.js:register",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:__tests__/integration/testUtils.js:register",
      "target": "file:server/infra/database/knex.js",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "function:__tests__/integration/testUtils.js:registerAndLogin",
      "target": "file:server/services/JWTService.js",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "function:__tests__/integration/testUtils.js:sendAndPend",
      "target": "file:server/utils/transfer-enum.js",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:__tests__/pending-transfer-accepted.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/pending-transfer-accepted.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/pending-transfer-accepted.spec.js",
      "target": "file:server/utils/transfer-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/pending-transfer-accepted.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/pending-transfer-cancel.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/pending-transfer-cancel.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/pending-transfer-cancel.spec.js",
      "target": "file:server/utils/transfer-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/pending-transfer-cancel.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/pending-transfer-decline.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/pending-transfer-decline.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/pending-transfer-decline.spec.js",
      "target": "file:server/utils/transfer-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/pending-transfer-decline.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/pending-transfer-wrong-wallet.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/pending-transfer-wrong-wallet.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/pending-transfer-wrong-wallet.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/seed.js",
      "target": "file:server/infra/database/knex.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/seed.js",
      "target": "function:__tests__/seed.js:seed",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/seed.js",
      "target": "function:__tests__/seed.js:addTokenToWallet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/seed.js",
      "target": "function:__tests__/seed.js:clear",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "function:__tests__/seed.js:seed",
      "target": "file:server/infra/database/knex.js",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "function:__tests__/seed.js:clear",
      "target": "file:server/infra/database/knex.js",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "function:__tests__/seed.js:addTokenToWallet",
      "target": "file:server/infra/database/knex.js",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:__tests__/trust-relationship-api.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/trust-relationship-api.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/trust-relationship-api.spec.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/trust-relationship-api.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/trust-relationship-manage.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/trust-relationship-manage.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/trust-relationship-manage.spec.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/trust-relationship-manage.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/trust-relationship-send-cancel.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/trust-relationship-send-cancel.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/trust-relationship-send-cancel.spec.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/trust-relationship-send-cancel.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/trust-relationship-send-decline.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/trust-relationship-send-decline.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/trust-relationship-send-decline.spec.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/trust-relationship-send-decline.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/trust-relationship-send.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/trust-relationship-send.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/trust-relationship-send.spec.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/trust-relationship-send.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/wallet-get.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/wallet-get.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/wallet-get.spec.js",
      "target": "file:server/services/WalletService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/wallet-get.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/services/WalletService.js",
      "target": "file:__tests__/wallet-get.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/wallet-pending-transfers-summary.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/wallet-pending-transfers-summary.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/wallet-pending-transfers-summary.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/wallet-post.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/wallet-post.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/wallet-post.spec.js",
      "target": "file:server/services/WalletService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:__tests__/wallet-post.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/services/WalletService.js",
      "target": "file:__tests__/wallet-post.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/app.js",
      "target": "file:server/routes/index.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:server/utils/utils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:server/routes/index.js",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:server/app.spec.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "file:server/app.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/server.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/server.js",
      "target": "file:server/setup.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/server.js",
      "target": "file:server/app.js",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:server/setup.js",
      "target": "function:server/setup.js:_sendNextMessage",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/setup.js",
      "target": "function:server/setup.js:loglevelServerSend",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "function:server/setup.js:loglevelServerSend",
      "target": "function:server/setup.js:_sendNextMessage",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/utils/transfer-enum.js",
      "target": "file:server/handlers/transferHandler.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/utils/transfer-enum.js",
      "target": "file:server/handlers/transferHandler/schemas.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/utils/transfer-enum.js",
      "target": "file:server/models/Transfer.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/utils/transfer-enum.js",
      "target": "file:server/repositories/TransferRepository.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/utils/transfer-enum.js",
      "target": "file:server/services/TransferService.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/handlers/authHandler.spec.js",
      "target": "file:server/routes/authRouter.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/authHandler.spec.js",
      "target": "file:server/services/ApiKeyService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/authHandler.spec.js",
      "target": "file:server/services/AuthService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/authHandler.spec.js",
      "target": "file:server/services/JWTService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/authHandler.spec.js",
      "target": "file:server/utils/utils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/authHandler/index.js",
      "target": "file:server/handlers/authHandler/schemas.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/authHandler/index.js",
      "target": "file:server/services/AuthService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/authHandler/index.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/eventHandler/index.js",
      "target": "file:server/handlers/eventHandler/schemas.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/eventHandler/index.js",
      "target": "file:server/services/EventService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/tokenHandler.spec.js",
      "target": "file:server/routes/tokenRouter.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/tokenHandler.spec.js",
      "target": "file:server/services/ApiKeyService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/tokenHandler.spec.js",
      "target": "file:server/services/JWTService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/tokenHandler.spec.js",
      "target": "file:server/services/TokenService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/tokenHandler.spec.js",
      "target": "file:server/utils/utils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/tokenHandler/index.js",
      "target": "file:server/handlers/tokenHandler/schemas.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/tokenHandler/index.js",
      "target": "file:server/services/TokenService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/transferHandler.spec.js",
      "target": "file:server/routes/transferRouter.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/transferHandler.spec.js",
      "target": "file:server/services/ApiKeyService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/transferHandler.spec.js",
      "target": "file:server/services/JWTService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/transferHandler.spec.js",
      "target": "file:server/services/TransferService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/transferHandler.spec.js",
      "target": "file:server/utils/transfer-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/transferHandler.spec.js",
      "target": "file:server/utils/utils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "file:server/handlers/transferHandler/schemas.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "file:server/services/TransferService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/authHandler/index.js",
      "target": "function:server/handlers/authHandler/index.js:authPost",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/eventHandler/index.js",
      "target": "function:server/handlers/eventHandler/index.js:eventsGet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/tokenHandler/index.js",
      "target": "function:server/handlers/tokenHandler/index.js:tokenGet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/tokenHandler/index.js",
      "target": "function:server/handlers/tokenHandler/index.js:tokenGetById",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/tokenHandler/index.js",
      "target": "function:server/handlers/tokenHandler/index.js:tokenGetTransactionsById",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferPost",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferIdAcceptPost",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferIdDeclinePost",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferIdDelete",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferIdFulfill",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferGet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferIdGet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferIdTokenGet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/authHandler/index.js",
      "target": "function:server/handlers/authHandler/index.js:authPost",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/eventHandler/index.js",
      "target": "function:server/handlers/eventHandler/index.js:eventsGet",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/tokenHandler/index.js",
      "target": "function:server/handlers/tokenHandler/index.js:tokenGet",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/tokenHandler/index.js",
      "target": "function:server/handlers/tokenHandler/index.js:tokenGetById",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/tokenHandler/index.js",
      "target": "function:server/handlers/tokenHandler/index.js:tokenGetTransactionsById",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferPost",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferIdAcceptPost",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferIdDeclinePost",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferIdDelete",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferIdFulfill",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferGet",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferIdGet",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "function:server/handlers/transferHandler/index.js:transferIdTokenGet",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/authHandler/index.js",
      "target": "file:server/handlers/authHandler.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/handlers/tokenHandler/index.js",
      "target": "file:server/handlers/tokenHandler.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/handlers/transferHandler/index.js",
      "target": "file:server/handlers/transferHandler.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/handlers/transferHandler/schemas.js",
      "target": "file:server/utils/transfer-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/trustHandler.spec.js",
      "target": "file:server/routes/trustRouter.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/trustHandler.spec.js",
      "target": "file:server/services/ApiKeyService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/trustHandler.spec.js",
      "target": "file:server/services/JWTService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/trustHandler.spec.js",
      "target": "file:server/services/TrustService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/trustHandler.spec.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/trustHandler.spec.js",
      "target": "file:server/utils/utils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/trustHandler/index.js",
      "target": "file:server/handlers/trustHandler/schemas.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/trustHandler/index.js",
      "target": "file:server/services/TrustService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/trustHandler/schemas.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/walletHandler.spec.js",
      "target": "file:server/routes/walletRouter.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/walletHandler.spec.js",
      "target": "file:server/services/ApiKeyService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/walletHandler.spec.js",
      "target": "file:server/services/JWTService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/walletHandler.spec.js",
      "target": "file:server/services/TrustService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/walletHandler.spec.js",
      "target": "file:server/services/WalletService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/walletHandler.spec.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/walletHandler.spec.js",
      "target": "file:server/utils/utils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "file:server/handlers/walletHandler/schemas.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "file:server/services/TrustService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "file:server/services/WalletService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/walletHandler/schemas.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/ApiKey.js",
      "target": "file:server/repositories/ApiKeyRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Apikey.spec.js",
      "target": "file:server/models/ApiKey.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Apikey.spec.js",
      "target": "file:server/repositories/ApiKeyRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/handlers/trustHandler/index.js",
      "target": "function:server/handlers/trustHandler/index.js:trustGet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/trustHandler/index.js",
      "target": "function:server/handlers/trustHandler/index.js:trustPost",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/trustHandler/index.js",
      "target": "function:server/handlers/trustHandler/index.js:trustRelationshipGetById",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/trustHandler/index.js",
      "target": "function:server/handlers/trustHandler/index.js:trustRelationshipAccept",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/trustHandler/index.js",
      "target": "function:server/handlers/trustHandler/index.js:trustRelationshipDecline",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/trustHandler/index.js",
      "target": "function:server/handlers/trustHandler/index.js:trustRelationshipDelete",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletGet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletSingleGet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletGetTrustRelationships",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletPost",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletPatch",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletBatchCreate",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletBatchTransfer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletGetPendingTransfersSummary",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/ApiKey.js",
      "target": "class:server/models/ApiKey.js:ApiKey",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/handlers/trustHandler/index.js",
      "target": "function:server/handlers/trustHandler/index.js:trustGet",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/trustHandler/index.js",
      "target": "function:server/handlers/trustHandler/index.js:trustPost",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/trustHandler/index.js",
      "target": "function:server/handlers/trustHandler/index.js:trustRelationshipGetById",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/trustHandler/index.js",
      "target": "function:server/handlers/trustHandler/index.js:trustRelationshipAccept",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/trustHandler/index.js",
      "target": "function:server/handlers/trustHandler/index.js:trustRelationshipDecline",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/trustHandler/index.js",
      "target": "function:server/handlers/trustHandler/index.js:trustRelationshipDelete",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletGet",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletSingleGet",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletGetTrustRelationships",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletPost",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletPatch",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletBatchCreate",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletBatchTransfer",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "function:server/handlers/walletHandler/index.js:walletGetPendingTransfersSummary",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/models/ApiKey.js",
      "target": "class:server/models/ApiKey.js:ApiKey",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/handlers/trustHandler/index.js",
      "target": "file:server/handlers/trustHandler.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/handlers/walletHandler/index.js",
      "target": "file:server/handlers/walletHandler.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/models/ApiKey.js",
      "target": "file:server/models/Apikey.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/routes/authRouter.js",
      "target": "file:server/handlers/authHandler/index.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/authRouter.js",
      "target": "file:server/utils/utils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/eventRouter.js",
      "target": "file:server/handlers/eventHandler/index.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/eventRouter.js",
      "target": "file:server/utils/utils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/index.js",
      "target": "file:server/routes/authRouter.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/index.js",
      "target": "file:server/routes/eventRouter.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/index.js",
      "target": "file:server/routes/tokenRouter.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/index.js",
      "target": "file:server/routes/transferRouter.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/index.js",
      "target": "file:server/routes/trustRouter.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/index.js",
      "target": "file:server/routes/walletRouter.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/tokenRouter.js",
      "target": "file:server/handlers/tokenHandler/index.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/tokenRouter.js",
      "target": "file:server/utils/utils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/transferRouter.js",
      "target": "file:server/handlers/transferHandler/index.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/transferRouter.js",
      "target": "file:server/utils/utils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/trustRouter.js",
      "target": "file:server/handlers/trustHandler/index.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/trustRouter.js",
      "target": "file:server/utils/utils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/walletRouter.js",
      "target": "file:server/handlers/walletHandler/index.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/walletRouter.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/routes/walletRouter.js",
      "target": "file:server/utils/utils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/ApiKeyService.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/ApiKeyService.js",
      "target": "file:server/models/ApiKey.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/ApiKeyService.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/ApiKeyService.spec.js",
      "target": "file:server/models/ApiKey.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/ApiKeyService.spec.js",
      "target": "file:server/services/ApiKeyService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/AuthService.js",
      "target": "file:server/services/EventService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/AuthService.js",
      "target": "file:server/services/HashService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/AuthService.js",
      "target": "file:server/services/JWTService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/AuthService.js",
      "target": "file:server/services/WalletService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/AuthService.js",
      "target": "file:server/utils/event-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/AuthService.spec.js",
      "target": "file:server/models/Event.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/AuthService.spec.js",
      "target": "file:server/services/AuthService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/AuthService.spec.js",
      "target": "file:server/services/HashService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/AuthService.spec.js",
      "target": "file:server/services/JWTService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/AuthService.spec.js",
      "target": "file:server/services/WalletService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/HashService.spec.js",
      "target": "file:server/services/HashService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/JWTService.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/JWTService.spec.js",
      "target": "file:server/services/JWTService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/utils/utils.js",
      "target": "file:server/services/ApiKeyService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/utils/utils.js",
      "target": "file:server/services/JWTService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/utils/utils.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/utils/utils.spec.js",
      "target": "file:server/services/ApiKeyService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/utils/utils.spec.js",
      "target": "file:server/services/JWTService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/utils/utils.spec.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/utils/utils.spec.js",
      "target": "file:server/utils/utils.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/ApiKeyRepository.js",
      "target": "class:server/repositories/ApiKeyRepository.js:ApiKeyRepository",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/services/ApiKeyService.js",
      "target": "class:server/services/ApiKeyService.js:ApiKeyService",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/services/AuthService.js",
      "target": "class:server/services/AuthService.js:AuthService",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/services/HashService.js",
      "target": "class:server/services/HashService.js:HashService",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/services/JWTService.js",
      "target": "class:server/services/JWTService.js:JWTService",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/utils/utils.js",
      "target": "function:server/utils/utils.js:handlerWrapper",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/utils/utils.js",
      "target": "function:server/utils/utils.js:errorHandler",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/utils/utils.js",
      "target": "function:server/utils/utils.js:apiKeyHandler",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/utils/utils.js",
      "target": "function:server/utils/utils.js:verifyJWTHandler",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/repositories/ApiKeyRepository.js",
      "target": "class:server/repositories/ApiKeyRepository.js:ApiKeyRepository",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/services/ApiKeyService.js",
      "target": "class:server/services/ApiKeyService.js:ApiKeyService",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/services/AuthService.js",
      "target": "class:server/services/AuthService.js:AuthService",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/services/HashService.js",
      "target": "class:server/services/HashService.js:HashService",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/services/JWTService.js",
      "target": "class:server/services/JWTService.js:JWTService",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/utils/utils.js",
      "target": "function:server/utils/utils.js:handlerWrapper",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/utils/utils.js",
      "target": "function:server/utils/utils.js:errorHandler",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/utils/utils.js",
      "target": "function:server/utils/utils.js:apiKeyHandler",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/utils/utils.js",
      "target": "function:server/utils/utils.js:verifyJWTHandler",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/AuthService.js:AuthService",
      "target": "class:server/services/WalletService.js:WalletService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/AuthService.js:AuthService",
      "target": "class:server/services/EventService.js:EventService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/AuthService.js:AuthService",
      "target": "class:server/services/HashService.js:HashService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/AuthService.js:AuthService",
      "target": "class:server/services/JWTService.js:JWTService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/ApiKeyService.js:ApiKeyService",
      "target": "class:server/models/ApiKey.js:ApiKey",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/utils/utils.js:apiKeyHandler",
      "target": "class:server/services/ApiKeyService.js:ApiKeyService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/utils/utils.js:verifyJWTHandler",
      "target": "class:server/services/JWTService.js:JWTService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/services/ApiKeyService.js",
      "target": "file:server/services/ApiKeyService.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/services/AuthService.js",
      "target": "file:server/services/AuthService.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/services/HashService.js",
      "target": "file:server/services/HashService.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/services/JWTService.js",
      "target": "file:server/services/JWTService.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/utils/utils.js",
      "target": "file:server/utils/utils.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/seed.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/seed.spec.js",
      "target": "file:server/infra/database/knex.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/session.spec.js",
      "target": "file:__tests__/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/session.spec.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:scripts/create/create-wallet.js",
      "target": "config:config.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/infra/database/Session.js",
      "target": "file:server/infra/database/knex.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/infra/database/Session.spec.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/infra/database/knex.js",
      "target": "config:config.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Token.spec.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Token.spec.js",
      "target": "file:server/models/Token.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Token.spec.js",
      "target": "file:server/repositories/TokenRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Token.spec.js",
      "target": "file:server/repositories/TransactionRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/ApiKeyRepository.spec.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/ApiKeyRepository.spec.js",
      "target": "file:server/infra/database/knex.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/ApiKeyRepository.spec.js",
      "target": "file:server/repositories/ApiKeyRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/BaseRepository.spec.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/BaseRepository.spec.js",
      "target": "file:server/infra/database/knex.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/BaseRepository.spec.js",
      "target": "file:server/repositories/BaseRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TokenRepository.spec.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TokenRepository.spec.js",
      "target": "file:server/infra/database/knex.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TokenRepository.spec.js",
      "target": "file:server/repositories/TokenRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TransactionRepository.js",
      "target": "file:server/repositories/BaseRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TransactionRepository.spec.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TransactionRepository.spec.js",
      "target": "file:server/infra/database/knex.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TransactionRepository.spec.js",
      "target": "file:server/repositories/TransactionRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TransferRepository.spec.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TransferRepository.spec.js",
      "target": "file:server/infra/database/knex.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TransferRepository.spec.js",
      "target": "file:server/repositories/TransferRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TrustRepository.spec.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TrustRepository.spec.js",
      "target": "file:server/infra/database/knex.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TrustRepository.spec.js",
      "target": "file:server/repositories/TrustRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/WalletRepository.spec.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/WalletRepository.spec.js",
      "target": "file:server/infra/database/knex.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/WalletRepository.spec.js",
      "target": "file:server/repositories/WalletRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/infra/database/Session.js",
      "target": "class:server/infra/database/Session.js:Session",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/infra/database/Session.js",
      "target": "class:server/infra/database/Session.js:Session",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/repositories/TransactionRepository.js",
      "target": "class:server/repositories/TransactionRepository.js:TransactionRepository",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/repositories/TransactionRepository.js",
      "target": "class:server/repositories/TransactionRepository.js:TransactionRepository",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/repositories/TransactionRepository.js:TransactionRepository",
      "target": "class:server/repositories/BaseRepository.js:BaseRepository",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "file:server/repositories/TransactionRepository.js",
      "target": "file:server/repositories/TransactionRepository.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/models/Event.js",
      "target": "class:server/models/Event.js:Event",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Event.js",
      "target": "class:server/models/Event.js:Event",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/models/Token.js",
      "target": "class:server/models/Token.js:Token",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Token.js",
      "target": "class:server/models/Token.js:Token",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/repositories/EventRepository.js",
      "target": "class:server/repositories/EventRepository.js:EventRepository",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/repositories/EventRepository.js",
      "target": "class:server/repositories/EventRepository.js:EventRepository",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/services/EventService.js",
      "target": "class:server/services/EventService.js:EventService",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/services/EventService.js",
      "target": "class:server/services/EventService.js:EventService",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/services/S3Service.js",
      "target": "function:server/services/S3Service.js:upload",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/services/S3Service.js",
      "target": "function:server/services/S3Service.js:upload",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/services/TokenService.js",
      "target": "class:server/services/TokenService.js:TokenService",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/services/TokenService.js",
      "target": "class:server/services/TokenService.js:TokenService",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/services/TransferService.js",
      "target": "class:server/services/TransferService.js:TransferService",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/services/TransferService.js",
      "target": "class:server/services/TransferService.js:TransferService",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/services/TrustService.js",
      "target": "class:server/services/TrustService.js:TrustService",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/services/TrustService.js",
      "target": "class:server/services/TrustService.js:TrustService",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/services/WalletService.js",
      "target": "class:server/services/WalletService.js:WalletService",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/services/WalletService.js",
      "target": "class:server/services/WalletService.js:WalletService",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/models/Event.js",
      "target": "file:server/repositories/EventRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Token.js",
      "target": "file:server/repositories/TokenRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Token.js",
      "target": "file:server/repositories/TransactionRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/EventRepository.js",
      "target": "file:server/repositories/BaseRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/EventService.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/EventService.js",
      "target": "file:server/models/Event.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/EventService.js",
      "target": "file:server/services/WalletService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/S3Service.js",
      "target": "file:server/infra/aws/s3.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TokenService.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TokenService.js",
      "target": "file:server/models/Token.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TokenService.js",
      "target": "file:server/services/WalletService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TokenService.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TokenService.spec.js",
      "target": "file:server/models/Token.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TokenService.spec.js",
      "target": "file:server/models/Wallet.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TokenService.spec.js",
      "target": "file:server/services/TokenService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TokenService.spec.js",
      "target": "file:server/services/WalletService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.js",
      "target": "file:server/models/Transfer.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.js",
      "target": "file:server/services/EventService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.js",
      "target": "file:server/services/TokenService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.js",
      "target": "file:server/services/WalletService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.js",
      "target": "file:server/utils/event-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.js",
      "target": "file:server/utils/transfer-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.spec.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.spec.js",
      "target": "file:server/models/Transfer.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.spec.js",
      "target": "file:server/services/EventService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.spec.js",
      "target": "file:server/services/TokenService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.spec.js",
      "target": "file:server/services/TransferService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.spec.js",
      "target": "file:server/services/WalletService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.spec.js",
      "target": "file:server/utils/event-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TransferService.spec.js",
      "target": "file:server/utils/transfer-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TrustService.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TrustService.js",
      "target": "file:server/models/Trust.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TrustService.js",
      "target": "file:server/models/Wallet.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TrustService.js",
      "target": "file:server/services/EventService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TrustService.js",
      "target": "file:server/services/WalletService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TrustService.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TrustService.js",
      "target": "file:server/utils/event-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TrustService.spec.js",
      "target": "file:server/models/Trust.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TrustService.spec.js",
      "target": "file:server/models/Wallet.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TrustService.spec.js",
      "target": "file:server/services/EventService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TrustService.spec.js",
      "target": "file:server/services/TrustService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TrustService.spec.js",
      "target": "file:server/services/WalletService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/WalletService.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/WalletService.js",
      "target": "file:server/models/Event.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/WalletService.js",
      "target": "file:server/models/Token.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/WalletService.js",
      "target": "file:server/models/Transfer.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/WalletService.js",
      "target": "file:server/models/Wallet.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/WalletService.js",
      "target": "file:server/services/S3Service.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/WalletService.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/WalletService.js",
      "target": "file:server/utils/event-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/WalletService.spec.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/WalletService.spec.js",
      "target": "file:server/models/Event.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/WalletService.spec.js",
      "target": "file:server/models/Token.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/WalletService.spec.js",
      "target": "file:server/models/Wallet.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/WalletService.spec.js",
      "target": "file:server/services/WalletService.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/services/TokenService.js",
      "target": "file:server/services/TokenService.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/services/TransferService.js",
      "target": "file:server/services/TransferService.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/services/TrustService.js",
      "target": "file:server/services/TrustService.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/services/WalletService.js",
      "target": "file:server/services/WalletService.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "class:server/repositories/EventRepository.js:EventRepository",
      "target": "class:server/repositories/BaseRepository.js:BaseRepository",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "class:server/models/Event.js:Event",
      "target": "class:server/repositories/EventRepository.js:EventRepository",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/EventService.js:EventService",
      "target": "class:server/models/Event.js:Event",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/EventService.js:EventService",
      "target": "class:server/services/WalletService.js:WalletService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/TokenService.js:TokenService",
      "target": "class:server/models/Token.js:Token",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/TokenService.js:TokenService",
      "target": "class:server/services/WalletService.js:WalletService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/TransferService.js:TransferService",
      "target": "class:server/services/WalletService.js:WalletService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/TransferService.js:TransferService",
      "target": "class:server/services/EventService.js:EventService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/TransferService.js:TransferService",
      "target": "class:server/services/TokenService.js:TokenService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/TransferService.js:TransferService",
      "target": "class:server/models/Transfer.js:Transfer",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/TrustService.js:TrustService",
      "target": "class:server/services/WalletService.js:WalletService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/TrustService.js:TrustService",
      "target": "class:server/services/EventService.js:EventService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/TrustService.js:TrustService",
      "target": "class:server/models/Trust.js:Trust",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/WalletService.js:WalletService",
      "target": "class:server/models/Wallet.js:Wallet",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/WalletService.js:WalletService",
      "target": "class:server/models/Event.js:Event",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/WalletService.js:WalletService",
      "target": "class:server/models/Token.js:Token",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/WalletService.js:WalletService",
      "target": "class:server/models/Transfer.js:Transfer",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/services/WalletService.js:WalletService",
      "target": "function:server/services/S3Service.js:upload",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:__tests__/e2e/__tests__/authentication.test.js",
      "target": "file:__tests__/e2e/config.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/authentication.test.js",
      "target": "file:__tests__/e2e/libs/bootstrap.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/managingWalletMovesTokensBetweenWallets.test.js",
      "target": "file:__tests__/e2e/config.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/managingWalletMovesTokensBetweenWallets.test.js",
      "target": "file:__tests__/e2e/helpers/tokenActionsHelper.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/managingWalletMovesTokensBetweenWallets.test.js",
      "target": "file:__tests__/e2e/helpers/walletActionsHelper.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/managingWalletMovesTokensBetweenWallets.test.js",
      "target": "file:__tests__/e2e/libs/bootstrap.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/managingWalletMovesTokensBetweenWallets.test.js",
      "target": "file:__tests__/e2e/libs/sessionLibrary.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithTrustRelationship.test.js",
      "target": "file:__tests__/e2e/config.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithTrustRelationship.test.js",
      "target": "file:__tests__/e2e/helpers/tokenActionsHelper.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithTrustRelationship.test.js",
      "target": "file:__tests__/e2e/helpers/walletActionsHelper.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithTrustRelationship.test.js",
      "target": "file:__tests__/e2e/libs/bootstrap.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithTrustRelationship.test.js",
      "target": "file:__tests__/e2e/libs/sessionLibrary.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithoutTrustRelationship.test.js",
      "target": "file:__tests__/e2e/config.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithoutTrustRelationship.test.js",
      "target": "file:__tests__/e2e/helpers/tokenActionsHelper.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithoutTrustRelationship.test.js",
      "target": "file:__tests__/e2e/helpers/walletActionsHelper.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithoutTrustRelationship.test.js",
      "target": "file:__tests__/e2e/libs/bootstrap.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithoutTrustRelationship.test.js",
      "target": "file:__tests__/e2e/libs/sessionLibrary.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/wallets.test.js",
      "target": "file:__tests__/e2e/config.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/wallets.test.js",
      "target": "file:__tests__/e2e/libs/bootstrap.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/__tests__/wallets.test.js",
      "target": "file:__tests__/e2e/libs/sessionLibrary.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/config.js",
      "target": "file:__tests__/e2e/database/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/config.js",
      "target": "file:__tests__/e2e/libs/assertionLibrary.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/config.js",
      "target": "file:server/app.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/database/seed.js",
      "target": "file:__tests__/e2e/database/knex.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/database/seed.test.js",
      "target": "file:__tests__/e2e/database/knex.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/database/seed.test.js",
      "target": "file:__tests__/e2e/database/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/helpers/tokenActionsHelper.js",
      "target": "file:__tests__/e2e/libs/assertionLibrary.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/helpers/walletActionsHelper.js",
      "target": "file:__tests__/e2e/libs/assertionLibrary.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/libs/bootstrap.js",
      "target": "file:__tests__/e2e/database/seed.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/libs/sessionLibrary.js",
      "target": "file:__tests__/e2e/config.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/libs/sessionLibrary.js",
      "target": "file:__tests__/e2e/libs/bootstrap.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/e2e/config.js",
      "target": "function:__tests__/e2e/config.js:sendGetRequest",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/config.js",
      "target": "function:__tests__/e2e/config.js:sendPostRequest",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/managingWalletMovesTokensBetweenWallets.test.js",
      "target": "function:__tests__/e2e/__tests__/sendTokens/managingWalletMovesTokensBetweenWallets.test.js:payload",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithTrustRelationship.test.js",
      "target": "function:__tests__/e2e/__tests__/sendTokens/sendTokensWithTrustRelationship.test.js:payload",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithoutTrustRelationship.test.js",
      "target": "function:__tests__/e2e/__tests__/sendTokens/sendTokensWithoutTrustRelationship.test.js:payload",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/database/seed.js",
      "target": "function:__tests__/e2e/database/seed.js:createTokens",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/database/seed.js",
      "target": "function:__tests__/e2e/database/seed.js:seed",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/database/seed.js",
      "target": "function:__tests__/e2e/database/seed.js:clear",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/helpers/tokenActionsHelper.js",
      "target": "function:__tests__/e2e/helpers/tokenActionsHelper.js:assertSendTokensBody",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/helpers/tokenActionsHelper.js",
      "target": "function:__tests__/e2e/helpers/tokenActionsHelper.js:assertTransferCompletedBody",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/helpers/tokenActionsHelper.js",
      "target": "function:__tests__/e2e/helpers/tokenActionsHelper.js:assertTransferDeclinedBody",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/helpers/walletActionsHelper.js",
      "target": "function:__tests__/e2e/helpers/walletActionsHelper.js:assertTokenInWallet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/helpers/walletActionsHelper.js",
      "target": "function:__tests__/e2e/helpers/walletActionsHelper.js:getNumberOfTokensFromWallet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/libs/assertionLibrary.js",
      "target": "function:__tests__/e2e/libs/assertionLibrary.js:contains",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/libs/assertionLibrary.js",
      "target": "function:__tests__/e2e/libs/assertionLibrary.js:equals",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/libs/assertionLibrary.js",
      "target": "function:__tests__/e2e/libs/assertionLibrary.js:notEqual",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/libs/assertionLibrary.js",
      "target": "function:__tests__/e2e/libs/assertionLibrary.js:breakTest",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/libs/sessionLibrary.js",
      "target": "function:__tests__/e2e/libs/sessionLibrary.js:getSession",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:__tests__/e2e/config.js",
      "target": "function:__tests__/e2e/config.js:sendGetRequest",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:__tests__/e2e/config.js",
      "target": "function:__tests__/e2e/config.js:sendPostRequest",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:__tests__/e2e/database/seed.js",
      "target": "function:__tests__/e2e/database/seed.js:seed",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:__tests__/e2e/database/seed.js",
      "target": "function:__tests__/e2e/database/seed.js:clear",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:__tests__/e2e/helpers/tokenActionsHelper.js",
      "target": "function:__tests__/e2e/helpers/tokenActionsHelper.js:assertSendTokensBody",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:__tests__/e2e/helpers/tokenActionsHelper.js",
      "target": "function:__tests__/e2e/helpers/tokenActionsHelper.js:assertTransferCompletedBody",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:__tests__/e2e/helpers/tokenActionsHelper.js",
      "target": "function:__tests__/e2e/helpers/tokenActionsHelper.js:assertTransferDeclinedBody",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:__tests__/e2e/helpers/walletActionsHelper.js",
      "target": "function:__tests__/e2e/helpers/walletActionsHelper.js:assertTokenInWallet",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:__tests__/e2e/helpers/walletActionsHelper.js",
      "target": "function:__tests__/e2e/helpers/walletActionsHelper.js:getNumberOfTokensFromWallet",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:__tests__/e2e/libs/assertionLibrary.js",
      "target": "function:__tests__/e2e/libs/assertionLibrary.js:contains",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:__tests__/e2e/libs/assertionLibrary.js",
      "target": "function:__tests__/e2e/libs/assertionLibrary.js:equals",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:__tests__/e2e/libs/assertionLibrary.js",
      "target": "function:__tests__/e2e/libs/assertionLibrary.js:notEqual",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:__tests__/e2e/libs/assertionLibrary.js",
      "target": "function:__tests__/e2e/libs/assertionLibrary.js:breakTest",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:__tests__/e2e/libs/sessionLibrary.js",
      "target": "function:__tests__/e2e/libs/sessionLibrary.js:getSession",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:__tests__/e2e/libs/sessionLibrary.js:getSession",
      "target": "function:__tests__/e2e/config.js:sendPostRequest",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:__tests__/e2e/libs/sessionLibrary.js:getSession",
      "target": "function:__tests__/e2e/libs/assertionLibrary.js:equals",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:__tests__/e2e/helpers/tokenActionsHelper.js:assertSendTokensBody",
      "target": "function:__tests__/e2e/libs/assertionLibrary.js:equals",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:__tests__/e2e/helpers/walletActionsHelper.js:assertTokenInWallet",
      "target": "function:__tests__/e2e/libs/assertionLibrary.js:equals",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:__tests__/e2e/helpers/walletActionsHelper.js:getNumberOfTokensFromWallet",
      "target": "function:__tests__/e2e/libs/assertionLibrary.js:equals",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:__tests__/e2e/database/seed.js",
      "target": "file:__tests__/e2e/database/seed.test.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "file:server/models/Token.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "file:server/models/Trust.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "file:server/models/Wallet.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "file:server/repositories/TransferRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "file:server/utils/transfer-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Transfer.spec.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Transfer.spec.js",
      "target": "file:server/models/Token.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Transfer.spec.js",
      "target": "file:server/models/Transfer.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Transfer.spec.js",
      "target": "file:server/models/Trust.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Transfer.spec.js",
      "target": "file:server/models/Wallet.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Transfer.spec.js",
      "target": "file:server/repositories/TransferRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Transfer.spec.js",
      "target": "file:server/utils/transfer-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Transfer.spec.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "file:server/models/Wallet.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "file:server/repositories/TrustRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Trust.spec.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Trust.spec.js",
      "target": "file:server/models/Trust.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Trust.spec.js",
      "target": "file:server/models/Wallet.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Trust.spec.js",
      "target": "file:server/repositories/TrustRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Trust.spec.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Wallet.js",
      "target": "file:server/repositories/TokenRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Wallet.js",
      "target": "file:server/repositories/TrustRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Wallet.js",
      "target": "file:server/repositories/WalletRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Wallet.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Wallet.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Wallet.spec.js",
      "target": "file:server/infra/database/Session.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Wallet.spec.js",
      "target": "file:server/models/Wallet.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Wallet.spec.js",
      "target": "file:server/repositories/TokenRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Wallet.spec.js",
      "target": "file:server/repositories/TrustRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Wallet.spec.js",
      "target": "file:server/repositories/WalletRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Wallet.spec.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Wallet.spec.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/BaseRepository.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "class:server/models/Transfer.js:Transfer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "class:server/models/Trust.js:Trust",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Wallet.js",
      "target": "class:server/models/Wallet.js:Wallet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/repositories/BaseRepository.js",
      "target": "class:server/repositories/BaseRepository.js:BaseRepository",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "function:server/models/Transfer.js:getByFilter",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "function:server/models/Transfer.js:getTransfers",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "function:server/models/Transfer.js:isDeduct",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "function:server/models/Transfer.js:transfer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "function:server/models/Transfer.js:transferBundle",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "function:server/models/Transfer.js:acceptTransfer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "function:server/models/Transfer.js:declineTransfer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "function:server/models/Transfer.js:cancelTransfer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "function:server/models/Transfer.js:fulfillTransfer",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "function:server/models/Transfer.js:fulfillTransferWithTokens",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "function:server/models/Trust.js:getTrustRelationshipFilter",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "function:server/models/Trust.js:getTrustRelationships",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "function:server/models/Trust.js:getTrustRelationshipsCount",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "function:server/models/Trust.js:requestTrustFromAWallet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "function:server/models/Trust.js:checkDuplicateRequest",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "function:server/models/Trust.js:checkManageCircle",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "function:server/models/Trust.js:getTrustRelationshipsRequestedToMe",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "function:server/models/Trust.js:updateTrustState",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "function:server/models/Trust.js:acceptTrustRequestSentToMe",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "function:server/models/Trust.js:declineTrustRequestSentToMe",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "function:server/models/Trust.js:cancelTrustRequest",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "function:server/models/Trust.js:hasTrust",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "function:server/models/Trust.js:getTrustRelationshipById",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Wallet.js",
      "target": "function:server/models/Wallet.js:createWallet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Wallet.js",
      "target": "function:server/models/Wallet.js:getWallet",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Wallet.js",
      "target": "function:server/models/Wallet.js:hasControlOver",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Wallet.js",
      "target": "function:server/models/Wallet.js:getSubWallets",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Wallet.js",
      "target": "function:server/models/Wallet.js:getAllWallets",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "class:server/models/Transfer.js:Transfer",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "class:server/models/Trust.js:Trust",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/models/Wallet.js",
      "target": "class:server/models/Wallet.js:Wallet",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/repositories/BaseRepository.js",
      "target": "class:server/repositories/BaseRepository.js:BaseRepository",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Transfer.js:getTransfers",
      "target": "function:server/models/Transfer.js:getByFilter",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Transfer.js:transfer",
      "target": "function:server/models/Transfer.js:isDeduct",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Transfer.js:transferBundle",
      "target": "function:server/models/Transfer.js:isDeduct",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Transfer.js:transfer",
      "target": "function:server/models/Wallet.js:hasControlOver",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Transfer.js:transferBundle",
      "target": "function:server/models/Wallet.js:hasControlOver",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Transfer.js:acceptTransfer",
      "target": "function:server/models/Wallet.js:hasControlOver",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Transfer.js:declineTransfer",
      "target": "function:server/models/Wallet.js:hasControlOver",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Transfer.js:cancelTransfer",
      "target": "function:server/models/Wallet.js:hasControlOver",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Transfer.js:fulfillTransfer",
      "target": "function:server/models/Wallet.js:hasControlOver",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Transfer.js:fulfillTransferWithTokens",
      "target": "function:server/models/Wallet.js:hasControlOver",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Transfer.js:isDeduct",
      "target": "function:server/models/Wallet.js:hasControlOver",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Transfer.js:getTransfers",
      "target": "function:server/models/Wallet.js:getAllWallets",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Transfer.js:transfer",
      "target": "function:server/models/Trust.js:hasTrust",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Transfer.js:transferBundle",
      "target": "function:server/models/Trust.js:hasTrust",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Trust.js:getTrustRelationshipsCount",
      "target": "function:server/models/Trust.js:getTrustRelationshipFilter",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Trust.js:checkDuplicateRequest",
      "target": "function:server/models/Trust.js:getTrustRelationships",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Trust.js:acceptTrustRequestSentToMe",
      "target": "function:server/models/Trust.js:getTrustRelationshipsRequestedToMe",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Trust.js:acceptTrustRequestSentToMe",
      "target": "function:server/models/Trust.js:checkManageCircle",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Trust.js:acceptTrustRequestSentToMe",
      "target": "function:server/models/Trust.js:updateTrustState",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Trust.js:declineTrustRequestSentToMe",
      "target": "function:server/models/Trust.js:getTrustRelationshipsRequestedToMe",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Trust.js:declineTrustRequestSentToMe",
      "target": "function:server/models/Trust.js:updateTrustState",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Trust.js:cancelTrustRequest",
      "target": "function:server/models/Trust.js:updateTrustState",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Trust.js:requestTrustFromAWallet",
      "target": "function:server/models/Trust.js:checkDuplicateRequest",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Trust.js:requestTrustFromAWallet",
      "target": "function:server/models/Wallet.js:hasControlOver",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Trust.js:getTrustRelationshipsRequestedToMe",
      "target": "function:server/models/Wallet.js:getAllWallets",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Trust.js:getTrustRelationshipById",
      "target": "function:server/models/Wallet.js:hasControlOver",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Trust.js:requestTrustFromAWallet",
      "target": "function:server/utils/trust-enums.js:getTrustTypeByRequestType",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Wallet.js:getWallet",
      "target": "function:server/models/Wallet.js:hasControlOver",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/models/Wallet.js:hasControlOver",
      "target": "function:server/models/Wallet.js:getSubWallets",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/repositories/TokenRepository.js",
      "target": "file:server/repositories/BaseRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TokenRepository.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TransferRepository.js",
      "target": "file:server/repositories/BaseRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TransferRepository.js",
      "target": "file:server/utils/transfer-enum.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TransferRepository.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TrustRepository.js",
      "target": "file:server/repositories/BaseRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TrustRepository.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/WalletRepository.js",
      "target": "file:server/repositories/BaseRepository.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/WalletRepository.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/WalletRepository.js",
      "target": "file:server/utils/trust-enums.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/utils/trust-enums.js",
      "target": "file:server/utils/HttpError.js",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/repositories/TokenRepository.js",
      "target": "class:server/repositories/TokenRepository.js:TokenRepository",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/repositories/TransferRepository.js",
      "target": "class:server/repositories/TransferRepository.js:TransferRepository",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/repositories/TrustRepository.js",
      "target": "class:server/repositories/TrustRepository.js:TrustRepository",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/repositories/WalletRepository.js",
      "target": "class:server/repositories/WalletRepository.js:WalletRepository",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/utils/HttpError.js",
      "target": "class:server/utils/HttpError.js:HttpError",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/utils/trust-enums.js",
      "target": "function:server/utils/trust-enums.js:getTrustTypeByRequestType",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:server/repositories/TokenRepository.js",
      "target": "class:server/repositories/TokenRepository.js:TokenRepository",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/repositories/TransferRepository.js",
      "target": "class:server/repositories/TransferRepository.js:TransferRepository",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/repositories/TrustRepository.js",
      "target": "class:server/repositories/TrustRepository.js:TrustRepository",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/repositories/WalletRepository.js",
      "target": "class:server/repositories/WalletRepository.js:WalletRepository",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/utils/HttpError.js",
      "target": "class:server/utils/HttpError.js:HttpError",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "file:server/utils/trust-enums.js",
      "target": "function:server/utils/trust-enums.js:getTrustTypeByRequestType",
      "type": "exports",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/repositories/TokenRepository.js:TokenRepository",
      "target": "class:server/repositories/BaseRepository.js:BaseRepository",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "class:server/repositories/TransferRepository.js:TransferRepository",
      "target": "class:server/repositories/BaseRepository.js:BaseRepository",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "class:server/repositories/TrustRepository.js:TrustRepository",
      "target": "class:server/repositories/BaseRepository.js:BaseRepository",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "class:server/repositories/WalletRepository.js:WalletRepository",
      "target": "class:server/repositories/BaseRepository.js:BaseRepository",
      "type": "inherits",
      "direction": "forward",
      "weight": 0.9
    },
    {
      "source": "service:Dockerfile",
      "target": "service:Dockerfile:node",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "pipeline:.github/workflows/patch-v1.10-CI-build-release.yml",
      "target": "step:.github/workflows/patch-v1.10-CI-build-release.yml:test",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "pipeline:.github/workflows/patch-v1.10-CI-build-release.yml",
      "target": "step:.github/workflows/patch-v1.10-CI-build-release.yml:release",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "step:.github/workflows/patch-v1.10-CI-build-release.yml:release",
      "target": "step:.github/workflows/patch-v1.10-CI-build-release.yml:test",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml",
      "target": "step:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml:build",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "pipeline:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml",
      "target": "step:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml:deploy",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "pipeline:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml",
      "target": "step:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml:test",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "step:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml:deploy",
      "target": "step:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml:build",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "step:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml:test",
      "target": "step:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml:deploy",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "pipeline:.github/workflows/treetracker-wallet-api-deploy-prod.yml",
      "target": "step:.github/workflows/treetracker-wallet-api-deploy-prod.yml:deploy-test",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "pipeline:.github/workflows/treetracker-wallet-api-deploy-test.yml",
      "target": "step:.github/workflows/treetracker-wallet-api-deploy-test.yml:deploy-test",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "pipeline:.github/workflows/treetracker-wallet-api-deploy-v1.10-dev.yml",
      "target": "step:.github/workflows/treetracker-wallet-api-deploy-v1.10-dev.yml:deploy-test",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "pipeline:.github/workflows/treetracker-wallet-api-pull-request-ci.yml",
      "target": "step:.github/workflows/treetracker-wallet-api-pull-request-ci.yml:build",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "pipeline:.github/workflows/treetracker-wallet-api-test-e2e-test.yml",
      "target": "step:.github/workflows/treetracker-wallet-api-test-e2e-test.yml:build",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "pipeline:.github/workflows/treetracker-wallet-api-test-e2e.yml",
      "target": "step:.github/workflows/treetracker-wallet-api-test-e2e.yml:build",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "pipeline:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml",
      "target": "pipeline:.github/workflows/treetracker-wallet-api-test-e2e.yml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "pipeline:.github/workflows/treetracker-wallet-api-deploy-test.yml",
      "target": "pipeline:.github/workflows/treetracker-wallet-api-test-e2e-test.yml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "pipeline:.github/workflows/patch-v1.10-CI-build-release.yml",
      "target": "pipeline:.github/workflows/treetracker-wallet-api-deploy-v1.10-dev.yml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "pipeline:.github/workflows/treetracker-wallet-api-deploy-prod.yml",
      "target": "pipeline:.github/workflows/treetracker-wallet-api-deploy-test.yml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:package.json",
      "target": "file:server/app.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:.env.example",
      "target": "file:server/app.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:.env.ci",
      "target": "file:server/app.spec.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:.prettierrc.json",
      "target": "file:server/app.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "document:README.md",
      "target": "file:server/app.js",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:CHANGELOG.md",
      "target": "config:package.json",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "table:database/migrations/sqls/20230529135030-add-about-up.sql:wallet",
      "target": "table:database/migrations/sqls/20230529135030-add-about-down.sql:wallet",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "table:database/migrations/sqls/20240412001733-AddCoverUrl-up.sql:wallet",
      "target": "table:database/migrations/sqls/20240412001733-AddCoverUrl-down.sql:wallet",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "table:database/migrations/sqls/20240422141722-add-display-name-up.sql:wallet",
      "target": "table:database/migrations/sqls/20240422141722-add-display-name-down.sql:wallet",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:deployment/base/kustomization.yaml",
      "target": "config:deployment/base/treetracker-wallet-api-deployment.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/kustomization.yaml",
      "target": "config:deployment/base/treetracker-wallet-api-mapping.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/kustomization.yaml",
      "target": "config:deployment/base/treetracker-wallet-api-service.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/kustomization.yaml",
      "target": "config:deployment/base/treetracker-wallet-api-db-migration-job.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/kustomization.yaml",
      "target": "config:deployment/base/treetracker-wallet-api-clusterrole.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/kustomization.yaml",
      "target": "config:deployment/base/treetracker-wallet-api-clusterrolebinding.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/treetracker-wallet-api-clusterrolebinding.yaml",
      "target": "config:deployment/base/treetracker-wallet-api-clusterrole.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/base/treetracker-wallet-api-clusterrolebinding.yaml",
      "target": "config:deployment/base/namespace.yaml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:deployment/base/treetracker-wallet-api-service.yaml",
      "target": "config:deployment/base/treetracker-wallet-api-deployment.yaml",
      "type": "serves",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "config:deployment/base/treetracker-wallet-api-mapping.yaml",
      "target": "config:deployment/base/treetracker-wallet-api-service.yaml",
      "type": "routes",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:docs/api/postman/postman_environment.development.json",
      "target": "config:docs/api/postman/treetracker-wallet-api-collection.json",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:docs/api/postman/postman_environment.localhost.json",
      "target": "config:docs/api/postman/treetracker-wallet-api-collection.json",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:docs/api/postman/postman_environment.production.json",
      "target": "config:docs/api/postman/treetracker-wallet-api-collection.json",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:docs/api/postman/postman_environment.test.json",
      "target": "config:docs/api/postman/treetracker-wallet-api-collection.json",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:__tests__/e2e/.mocharc.js",
      "target": "document:__tests__/e2e/README.md",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:__tests__/e2e/README.md",
      "target": "config:__tests__/e2e/.mocharc.js",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "document:database/README.md",
      "target": "file:database/migrations/20200826045032-CreateSchemaWallets.js",
      "type": "documents",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:database/migrations/20200826045033-AddUUIDExtension.js",
      "target": "file:database/migrations/20200901213253-CreateTableToken.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:database/migrations/20200830050917-CreateEnumTransferState.js",
      "target": "file:database/migrations/20200901213254-CreateTableTransfer.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:database/migrations/20200830050921-CreateEnumTransferType.js",
      "target": "file:database/migrations/20200901213254-CreateTableTransfer.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:database/migrations/20200901213040-CreateEnumEntityTrustReqType.js",
      "target": "file:database/migrations/20200902014751-CreateTableEntity-Trust.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:database/migrations/20200901213111-CreateEnumEntityTrustType.js",
      "target": "file:database/migrations/20200902014751-CreateTableEntity-Trust.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:database/migrations/20200901213222-CreateEnumEntityTrustStateType.js",
      "target": "file:database/migrations/20200902014751-CreateTableEntity-Trust.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:database/migrations/20200901213252-CreateEnumWalletEventType.js",
      "target": "file:database/migrations/20200901222910-CreateTableWallet-Event.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:database/migrations/20200901213241-CreateEnumTransferStateChangeApprovalType.js",
      "target": "file:database/migrations/20200901213254-CreateTableTransfer.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "config:.huskyrc",
      "target": "config:commitlint.config.js",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/development/kustomization.yaml",
      "target": "config:deployment/overlays/development/mapping.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/production/kustomization.yaml",
      "target": "config:deployment/overlays/production/mapping.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:deployment/overlays/test/kustomization.yaml",
      "target": "config:deployment/overlays/test/mapping.yaml",
      "type": "depends_on",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:docs/api/spec/treetracker-wallet-api-v1-10.yaml",
      "target": "config:docs/api/spec/treetracker-wallet-api.yaml",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:scripts/create/create-tokens-haiti-tree-project.js",
      "target": "function:scripts/create/create-tokens-haiti-tree-project.js:getRandomArbitrary",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:scripts/create/create-tokens-kijani.js",
      "target": "function:scripts/create/create-tokens-kijani.js:getRandomArbitrary",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:scripts/demo/create-demo-wallet-simple.js",
      "target": "function:scripts/demo/create-demo-wallet-simple.js:getRandomArbitrary",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:scripts/demo/create-demo-wallet-simple.js",
      "target": "function:scripts/demo/create-demo-wallet-simple.js:sha512",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:scripts/demo/create-demo-wallet.js",
      "target": "function:scripts/demo/create-demo-wallet.js:getRandomArbitrary",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:scripts/demo/create-demo-wallet.js",
      "target": "function:scripts/demo/create-demo-wallet.js:sha512",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "file:scripts/user/sha.js",
      "target": "function:scripts/user/sha.js:sha512",
      "type": "contains",
      "direction": "forward",
      "weight": 1.0
    },
    {
      "source": "config:scripts/demo/package.json",
      "target": "file:scripts/demo/create-demo-wallet.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "config:scripts/demo/package.json",
      "target": "file:scripts/demo/create-demo-wallet-simple.js",
      "type": "configures",
      "direction": "forward",
      "weight": 0.6
    },
    {
      "source": "file:scripts/demo/create-demo-wallet.js",
      "target": "file:scripts/demo/create-demo-wallet-simple.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:scripts/create/create-tokens-haiti-tree-project.js",
      "target": "file:scripts/create/create-tokens-kijani.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:scripts/user/sha.js",
      "target": "file:scripts/demo/create-demo-wallet.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:scripts/user/sha.js",
      "target": "file:scripts/demo/create-demo-wallet-simple.js",
      "type": "related",
      "direction": "forward",
      "weight": 0.5
    },
    {
      "source": "file:__tests__/seed.js",
      "target": "file:__tests__/seed.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5,
      "description": "Path-based pairing (deterministic)"
    },
    {
      "source": "file:server/infra/database/Session.js",
      "target": "file:server/infra/database/Session.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5,
      "description": "Path-based pairing (deterministic)"
    },
    {
      "source": "file:server/models/Token.js",
      "target": "file:server/models/Token.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5,
      "description": "Path-based pairing (deterministic)"
    },
    {
      "source": "file:server/repositories/ApiKeyRepository.js",
      "target": "file:server/repositories/ApiKeyRepository.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5,
      "description": "Path-based pairing (deterministic)"
    },
    {
      "source": "file:server/repositories/BaseRepository.js",
      "target": "file:server/repositories/BaseRepository.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5,
      "description": "Path-based pairing (deterministic)"
    },
    {
      "source": "file:server/repositories/TokenRepository.js",
      "target": "file:server/repositories/TokenRepository.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5,
      "description": "Path-based pairing (deterministic)"
    },
    {
      "source": "file:server/repositories/TransferRepository.js",
      "target": "file:server/repositories/TransferRepository.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5,
      "description": "Path-based pairing (deterministic)"
    },
    {
      "source": "file:server/repositories/TrustRepository.js",
      "target": "file:server/repositories/TrustRepository.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5,
      "description": "Path-based pairing (deterministic)"
    },
    {
      "source": "file:server/repositories/WalletRepository.js",
      "target": "file:server/repositories/WalletRepository.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5,
      "description": "Path-based pairing (deterministic)"
    },
    {
      "source": "file:server/models/Transfer.js",
      "target": "file:server/models/Transfer.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5,
      "description": "Path-based pairing (deterministic)"
    },
    {
      "source": "file:server/models/Trust.js",
      "target": "file:server/models/Trust.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5,
      "description": "Path-based pairing (deterministic)"
    },
    {
      "source": "file:server/models/Wallet.js",
      "target": "file:server/models/Wallet.spec.js",
      "type": "tested_by",
      "direction": "forward",
      "weight": 0.5,
      "description": "Path-based pairing (deterministic)"
    },
    {
      "source": "file:__tests__/integration/auth.spec.js",
      "target": "config:__tests__/mock-data/Zaven.json",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/integration/bundle-transfer-decline.spec.js",
      "target": "config:__tests__/mock-data/Meisze.json",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:__tests__/integration/bundle-transfer-decline.spec.js",
      "target": "config:__tests__/mock-data/Zaven.json",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.js",
      "target": "config:package.json",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "file:server/app.spec.js",
      "target": "config:package.json",
      "type": "imports",
      "direction": "forward",
      "weight": 0.7
    },
    {
      "source": "function:server/handlers/authHandler/index.js:authPost",
      "target": "class:server/services/AuthService.js:AuthService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/eventHandler/index.js:eventsGet",
      "target": "class:server/services/EventService.js:EventService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/tokenHandler/index.js:tokenGet",
      "target": "class:server/services/TokenService.js:TokenService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/tokenHandler/index.js:tokenGetById",
      "target": "class:server/services/TokenService.js:TokenService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/tokenHandler/index.js:tokenGetTransactionsById",
      "target": "class:server/services/TokenService.js:TokenService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/transferHandler/index.js:transferPost",
      "target": "class:server/services/TransferService.js:TransferService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/transferHandler/index.js:transferIdAcceptPost",
      "target": "class:server/services/TransferService.js:TransferService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/transferHandler/index.js:transferIdDeclinePost",
      "target": "class:server/services/TransferService.js:TransferService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/transferHandler/index.js:transferIdDelete",
      "target": "class:server/services/TransferService.js:TransferService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/transferHandler/index.js:transferIdFulfill",
      "target": "class:server/services/TransferService.js:TransferService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/transferHandler/index.js:transferGet",
      "target": "class:server/services/TransferService.js:TransferService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/transferHandler/index.js:transferIdGet",
      "target": "class:server/services/TransferService.js:TransferService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/transferHandler/index.js:transferIdTokenGet",
      "target": "class:server/services/TransferService.js:TransferService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/trustHandler/index.js:trustGet",
      "target": "class:server/services/TrustService.js:TrustService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/trustHandler/index.js:trustPost",
      "target": "class:server/services/TrustService.js:TrustService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/trustHandler/index.js:trustRelationshipGetById",
      "target": "class:server/services/TrustService.js:TrustService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/trustHandler/index.js:trustRelationshipAccept",
      "target": "class:server/services/TrustService.js:TrustService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/trustHandler/index.js:trustRelationshipDecline",
      "target": "class:server/services/TrustService.js:TrustService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/trustHandler/index.js:trustRelationshipDelete",
      "target": "class:server/services/TrustService.js:TrustService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/walletHandler/index.js:walletGet",
      "target": "class:server/services/WalletService.js:WalletService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/walletHandler/index.js:walletSingleGet",
      "target": "class:server/services/WalletService.js:WalletService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/walletHandler/index.js:walletGetTrustRelationships",
      "target": "class:server/services/WalletService.js:WalletService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/walletHandler/index.js:walletGetTrustRelationships",
      "target": "class:server/services/TrustService.js:TrustService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/walletHandler/index.js:walletPost",
      "target": "class:server/services/WalletService.js:WalletService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/walletHandler/index.js:walletPatch",
      "target": "class:server/services/WalletService.js:WalletService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/walletHandler/index.js:walletBatchCreate",
      "target": "class:server/services/WalletService.js:WalletService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/walletHandler/index.js:walletBatchTransfer",
      "target": "class:server/services/WalletService.js:WalletService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "function:server/handlers/walletHandler/index.js:walletGetPendingTransfersSummary",
      "target": "class:server/services/WalletService.js:WalletService",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    },
    {
      "source": "class:server/models/ApiKey.js:ApiKey",
      "target": "class:server/repositories/ApiKeyRepository.js:ApiKeyRepository",
      "type": "calls",
      "direction": "forward",
      "weight": 0.8
    }
  ],
  "layers": [
    {
      "id": "layer:api",
      "name": "API Layer",
      "description": "Express app bootstrap, route handlers, routers, request/response schemas, and the OpenAPI/Postman API contracts for auth, event, token, transfer, trust, and wallet resources.",
      "nodeIds": [
        "file:server/app.js",
        "file:server/server.js",
        "file:server/setup.js",
        "file:server/handlers/authHandler/index.js",
        "file:server/handlers/authHandler/schemas.js",
        "file:server/handlers/eventHandler/index.js",
        "file:server/handlers/eventHandler/schemas.js",
        "file:server/handlers/tokenHandler/index.js",
        "file:server/handlers/tokenHandler/schemas.js",
        "file:server/handlers/transferHandler/index.js",
        "file:server/handlers/transferHandler/schemas.js",
        "file:server/handlers/trustHandler/index.js",
        "file:server/handlers/trustHandler/schemas.js",
        "file:server/handlers/walletHandler/index.js",
        "file:server/handlers/walletHandler/schemas.js",
        "file:server/routes/authRouter.js",
        "file:server/routes/eventRouter.js",
        "file:server/routes/index.js",
        "file:server/routes/tokenRouter.js",
        "file:server/routes/transferRouter.js",
        "file:server/routes/trustRouter.js",
        "file:server/routes/walletRouter.js",
        "config:docs/api/postman/postman_environment.development.json",
        "config:docs/api/postman/postman_environment.localhost.json",
        "config:docs/api/postman/postman_environment.production.json",
        "config:docs/api/postman/postman_environment.test.json",
        "config:docs/api/postman/treetracker-wallet-api-collection.json",
        "file:docs/api/postman/pre-request-script.js",
        "file:docs/api/postman/tests-script.js",
        "config:docs/api/spec/treetracker-wallet-api-v1-10.yaml",
        "config:docs/api/spec/treetracker-wallet-api.yaml"
      ]
    },
    {
      "id": "layer:service",
      "name": "Service Layer",
      "description": "Business logic services that orchestrate authentication, hashing, JWT issuance, S3 uploads, and token/transfer/trust/wallet operations between handlers and repositories.",
      "nodeIds": [
        "file:server/services/ApiKeyService.js",
        "file:server/services/AuthService.js",
        "file:server/services/HashService.js",
        "file:server/services/JWTService.js",
        "file:server/services/EventService.js",
        "file:server/services/S3Service.js",
        "file:server/services/TokenService.js",
        "file:server/services/TransferService.js",
        "file:server/services/TrustService.js",
        "file:server/services/WalletService.js"
      ]
    },
    {
      "id": "layer:data",
      "name": "Data Layer",
      "description": "Domain models, Knex-based repositories, the database session/connection client, and db-migrate migrations plus raw SQL that define the PostgreSQL wallet schema.",
      "nodeIds": [
        "file:server/models/ApiKey.js",
        "file:server/repositories/ApiKeyRepository.js",
        "file:server/infra/database/Session.js",
        "file:server/infra/database/knex.js",
        "file:server/repositories/TransactionRepository.js",
        "file:server/models/Event.js",
        "file:server/models/Token.js",
        "file:server/repositories/EventRepository.js",
        "file:server/models/Transfer.js",
        "file:server/models/Trust.js",
        "file:server/models/Wallet.js",
        "file:server/repositories/BaseRepository.js",
        "file:server/repositories/TokenRepository.js",
        "file:server/repositories/TransferRepository.js",
        "file:server/repositories/TrustRepository.js",
        "file:server/repositories/WalletRepository.js",
        "table:database/migrations/sqls/20210211020241-AddDefaultIdTransactionTable-down.sql:transaction",
        "table:database/migrations/sqls/20210211020241-AddDefaultIdTransactionTable-up.sql:transaction",
        "table:database/migrations/sqls/20210211020257-AddDefaultIdTransferTable-down.sql:transfer",
        "table:database/migrations/sqls/20210211020257-AddDefaultIdTransferTable-up.sql:transfer",
        "table:database/migrations/sqls/20210211020301-AddDefaultIdTokenTable-down.sql:token",
        "table:database/migrations/sqls/20210211020301-AddDefaultIdTokenTable-up.sql:token",
        "table:database/migrations/sqls/20210211020304-AddDefaultIdWalletTable-down.sql:wallet",
        "table:database/migrations/sqls/20210211020304-AddDefaultIdWalletTable-up.sql:wallet",
        "table:database/migrations/sqls/20210211020331-AddDefaultIdApiKeyTable-down.sql:api_key",
        "table:database/migrations/sqls/20210211020331-AddDefaultIdApiKeyTable-up.sql:api_key",
        "table:database/migrations/sqls/20210211020340-AddDefaultIdTransferAuditTable-down.sql:transfer_audit",
        "table:database/migrations/sqls/20210211020340-AddDefaultIdTransferAuditTable-up.sql:transfer_audit",
        "table:database/migrations/sqls/20210211020347-AddDefaultIdWalletEventTable-down.sql:wallet_event",
        "table:database/migrations/sqls/20210211020347-AddDefaultIdWalletEventTable-up.sql:wallet_event",
        "table:database/migrations/sqls/20210211020352-AddDefaultIdWalletTrustTable-down.sql:wallet_trust",
        "table:database/migrations/sqls/20210211020352-AddDefaultIdWalletTrustTable-up.sql:wallet_trust",
        "table:database/migrations/sqls/20210211020356-AddDefaultIdWalletTrustLogTable-down.sql:wallet_trust_log",
        "table:database/migrations/sqls/20210211020356-AddDefaultIdWalletTrustLogTable-up.sql:wallet_trust_log",
        "table:database/migrations/sqls/20230314184543-add-batch-create-check-down.sql:api_key",
        "table:database/migrations/sqls/20230314184543-add-batch-create-check-up.sql:api_key",
        "table:database/migrations/sqls/20230529135030-add-about-up.sql:wallet",
        "table:database/migrations/sqls/20230529135030-add-about-down.sql:wallet",
        "table:database/migrations/sqls/20240412001733-AddCoverUrl-up.sql:wallet",
        "table:database/migrations/sqls/20240412001733-AddCoverUrl-down.sql:wallet",
        "table:database/migrations/sqls/20240422141722-add-display-name-up.sql:wallet",
        "table:database/migrations/sqls/20240422141722-add-display-name-down.sql:wallet",
        "document:database/README.md",
        "file:database/migrations/20200826045032-CreateSchemaWallets.js",
        "file:database/migrations/20200826045033-AddUUIDExtension.js",
        "file:database/migrations/20200826045033-CreateTableTransaction.js",
        "file:database/migrations/20200830050917-CreateEnumTransferState.js",
        "file:database/migrations/20200830050921-CreateEnumTransferType.js",
        "file:database/migrations/20200901213040-CreateEnumEntityTrustReqType.js",
        "file:database/migrations/20200901213111-CreateEnumEntityTrustType.js",
        "file:database/migrations/20200901213222-CreateEnumEntityTrustStateType.js",
        "file:database/migrations/20200901213241-CreateEnumTransferStateChangeApprovalType.js",
        "file:database/migrations/20200901213252-CreateEnumWalletEventType.js",
        "file:database/migrations/20200901213253-CreateTableToken.js",
        "file:database/migrations/20200901213254-CreateTableTransfer.js",
        "file:database/migrations/20200901222910-CreateTableWallet-Event.js",
        "file:database/migrations/20200902014751-CreateTableEntity-Trust.js",
        "file:database/migrations/20200902014758-CreateTableEntity-Trust-Log.js",
        "file:database/migrations/20200902014805-CreateTableTransfer-Audit.js",
        "file:database/migrations/20200912104451-FixAutoIncrementBug.js",
        "file:database/migrations/20200916235257-CreateTableApi-Key.js",
        "file:database/migrations/20200917183542-CreateTableWallet.js",
        "file:database/migrations/20201127234338-AllowNullPasswordWallet.js",
        "file:database/migrations/20201207011556-RemoveUnnecessaryWalletFields",
        "file:database/migrations/20201209064928-RenameTableEntityTrust.js",
        "file:database/migrations/20201209065300-RenameTableEntityTrustLog.js",
        "file:database/migrations/20210211020241-AddDefaultIdTransactionTable.js",
        "file:database/migrations/20210211020257-AddDefaultIdTransferTable.js",
        "file:database/migrations/20210211020301-AddDefaultIdTokenTable.js",
        "file:database/migrations/20210211020304-AddDefaultIdWalletTable.js",
        "file:database/migrations/20210211020331-AddDefaultIdApiKeyTable.js",
        "file:database/migrations/20210211020340-AddDefaultIdTransferAuditTable.js",
        "file:database/migrations/20210211020347-AddDefaultIdWalletEventTable.js",
        "file:database/migrations/20210211020352-AddDefaultIdWalletTrustTable.js",
        "file:database/migrations/20210211020356-AddDefaultIdWalletTrustLogTable.js",
        "file:database/migrations/20210226210059-AddTransferPendingIdIndex.js",
        "file:database/migrations/20210226234313-AddUniqueConstraintWalletName.js",
        "file:database/migrations/20210304014730-AddUniqueConstraintCaptureId.js",
        "file:database/migrations/20210401005831-AddClaimBoolean.js",
        "file:database/migrations/20210401015411-AddColClaimBooleanTransferTable.js",
        "file:database/migrations/20210419015057-AddColClaimBooleanTransactionTable.js",
        "file:database/migrations/20210818020849-CreateIndexTokenWalletId.js",
        "file:database/migrations/20210818210436-TransferActiveDefault.js",
        "file:database/migrations/20210818211159-WalletTrustActiveDefault.js",
        "file:database/migrations/20210818213054-TransferClaimNotNull.js",
        "file:database/migrations/20210819001907-TransactionClaimDefault.js",
        "file:database/migrations/20211007223144-AddCreatedAtWallet.js",
        "file:database/migrations/20230314184543-add-batch-create-check.js",
        "file:database/migrations/20230529135030-add-about.js",
        "file:database/migrations/20230916050749-AlterWalletEventTypeEnum.js",
        "file:database/migrations/20230916052558-AddPayloadToWalletEventTable.js.js",
        "file:database/migrations/20240412001733-AddCoverUrl.js",
        "file:database/migrations/20240422141722-add-display-name.js",
        "file:database/treetracker-wallet-seed-schema-only.pgsql"
      ]
    },
    {
      "id": "layer:utility",
      "name": "Utility Layer",
      "description": "Shared cross-cutting helpers, enums, and the HttpError class used across handlers, services, and repositories.",
      "nodeIds": [
        "file:server/utils/transfer-enum.js",
        "file:server/utils/utils.js",
        "file:server/utils/event-enum.js",
        "file:server/utils/HttpError.js",
        "file:server/utils/trust-enums.js"
      ]
    },
    {
      "id": "layer:infrastructure",
      "name": "Infrastructure",
      "description": "Docker and docker-compose container definitions, Kubernetes/Kustomize deployment manifests, and the AWS S3 client used to run and deploy the wallet API.",
      "nodeIds": [
        "file:server/infra/aws/s3.js",
        "service:.dockerignore",
        "service:Dockerfile",
        "service:Dockerfile:node",
        "service:docker-compose.yml",
        "config:deployment/base/kustomization.yaml",
        "config:deployment/base/namespace.yaml",
        "config:deployment/base/treetracker-wallet-api-clusterrole.yaml",
        "config:deployment/base/treetracker-wallet-api-clusterrolebinding.yaml",
        "config:deployment/base/treetracker-wallet-api-db-migration-job.yaml",
        "config:deployment/base/treetracker-wallet-api-deployment.yaml",
        "config:deployment/base/treetracker-wallet-api-mapping.yaml",
        "config:deployment/base/treetracker-wallet-api-service.yaml",
        "config:deployment/overlays/development/kustomization.yaml",
        "config:deployment/overlays/development/mapping.yaml",
        "config:deployment/overlays/production/kustomization.yaml",
        "config:deployment/overlays/production/mapping.yaml",
        "config:deployment/overlays/test/kustomization.yaml",
        "config:deployment/overlays/test/mapping.yaml"
      ]
    },
    {
      "id": "layer:ci-cd",
      "name": "CI/CD Pipelines",
      "description": "GitHub Actions workflows and their build/test/deploy steps, plus the pull request template that govern how the wallet API is built, tested, and released.",
      "nodeIds": [
        "pipeline:.github/workflows/patch-v1.10-CI-build-release.yml",
        "pipeline:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml",
        "pipeline:.github/workflows/treetracker-wallet-api-deploy-prod.yml",
        "pipeline:.github/workflows/treetracker-wallet-api-deploy-test.yml",
        "pipeline:.github/workflows/treetracker-wallet-api-deploy-v1.10-dev.yml",
        "pipeline:.github/workflows/treetracker-wallet-api-pull-request-ci.yml",
        "pipeline:.github/workflows/treetracker-wallet-api-test-e2e-test.yml",
        "pipeline:.github/workflows/treetracker-wallet-api-test-e2e.yml",
        "step:.github/workflows/patch-v1.10-CI-build-release.yml:test",
        "step:.github/workflows/patch-v1.10-CI-build-release.yml:release",
        "step:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml:build",
        "step:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml:deploy",
        "step:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml:test",
        "step:.github/workflows/treetracker-wallet-api-deploy-prod.yml:deploy-test",
        "step:.github/workflows/treetracker-wallet-api-deploy-test.yml:deploy-test",
        "step:.github/workflows/treetracker-wallet-api-deploy-v1.10-dev.yml:deploy-test",
        "step:.github/workflows/treetracker-wallet-api-pull-request-ci.yml:build",
        "step:.github/workflows/treetracker-wallet-api-test-e2e-test.yml:build",
        "step:.github/workflows/treetracker-wallet-api-test-e2e.yml:build",
        "document:.github/pull_request_template.md"
      ]
    },
    {
      "id": "layer:config",
      "name": "Configuration",
      "description": "Project-level configuration such as environment files, linting/formatting rules, commit conventions, package manifests, and code ownership settings.",
      "nodeIds": [
        "config:config.js",
        "config:.env.ci",
        "config:.env.example",
        "config:.prettierrc.json",
        "config:package.json",
        "config:.eslintignore",
        "config:.huskyrc",
        "config:.releaserc",
        "config:CODEOWNERS",
        "config:commitlint.config.js",
        "config:config/.gitkeep"
      ]
    },
    {
      "id": "layer:documentation",
      "name": "Documentation",
      "description": "Top-level project documentation including the README and CHANGELOG describing the wallet API and its release history.",
      "nodeIds": [
        "document:CHANGELOG.md",
        "document:README.md"
      ]
    },
    {
      "id": "layer:scripts",
      "name": "Operational Scripts",
      "description": "One-off Node.js and shell scripts for creating wallets, seeding demo data, and batch-generating tokens outside the running API.",
      "nodeIds": [
        "file:scripts/create/create-wallet.js",
        "file:scripts/user/auth.sh",
        "file:scripts/user/env.sh",
        "file:scripts/user/other.sh",
        "config:scripts/user/out.json",
        "file:scripts/user/sha512.sh",
        "file:scripts/create/clean-up-duplicates.js",
        "file:scripts/create/create-tokens-csv.js",
        "file:scripts/create/create-tokens-fcc.js",
        "file:scripts/create/create-tokens-haiti-tree-project.js",
        "file:scripts/create/create-tokens-kijani.js",
        "file:scripts/demo/create-demo-wallet-simple.js",
        "file:scripts/demo/create-demo-wallet.js",
        "config:scripts/demo/package.json",
        "file:scripts/user/sha.js"
      ]
    },
    {
      "id": "layer:test",
      "name": "Test Suite",
      "description": "Legacy, integration, and end-to-end test specs plus mock data and colocated unit tests that verify wallet, transfer, trust, token, and auth behavior.",
      "nodeIds": [
        "file:__tests__/auth.spec.js",
        "file:__tests__/bundle-transfer-cancel.spec.js",
        "file:__tests__/bundle-transfer-create-accept.spec.js",
        "file:__tests__/bundle-transfer-decline.spec.js",
        "file:__tests__/fulfill-bundle-transfer-request.spec.js",
        "file:__tests__/fulfill-explicity-transfer-request.spec.js",
        "file:__tests__/get-tokens.spec.js",
        "file:__tests__/integration/auth.spec.js",
        "file:__tests__/integration/bundle-transfer-decline.spec.js",
        "file:__tests__/integration/testUtils.js",
        "file:__tests__/pending-transfer-accepted.spec.js",
        "file:__tests__/pending-transfer-cancel.spec.js",
        "file:__tests__/pending-transfer-decline.spec.js",
        "file:__tests__/pending-transfer-wrong-wallet.spec.js",
        "file:__tests__/seed.js",
        "file:__tests__/trust-relationship-api.spec.js",
        "file:__tests__/trust-relationship-manage.spec.js",
        "file:__tests__/trust-relationship-send-cancel.spec.js",
        "file:__tests__/trust-relationship-send-decline.spec.js",
        "file:__tests__/trust-relationship-send.spec.js",
        "file:__tests__/wallet-get.spec.js",
        "file:__tests__/wallet-pending-transfers-summary.spec.js",
        "file:__tests__/wallet-post.spec.js",
        "file:server/app.spec.js",
        "file:server/handlers/authHandler.spec.js",
        "file:server/handlers/tokenHandler.spec.js",
        "file:server/handlers/transferHandler.spec.js",
        "file:server/handlers/trustHandler.spec.js",
        "file:server/handlers/walletHandler.spec.js",
        "file:server/models/Apikey.spec.js",
        "file:server/services/ApiKeyService.spec.js",
        "file:server/services/AuthService.spec.js",
        "file:server/services/HashService.spec.js",
        "file:server/services/JWTService.spec.js",
        "file:server/utils/utils.spec.js",
        "file:__tests__/seed.spec.js",
        "file:__tests__/session.spec.js",
        "file:server/infra/database/Session.spec.js",
        "file:server/models/Token.spec.js",
        "file:server/repositories/ApiKeyRepository.spec.js",
        "file:server/repositories/BaseRepository.spec.js",
        "file:server/repositories/TokenRepository.spec.js",
        "file:server/repositories/TransactionRepository.spec.js",
        "file:server/repositories/TransferRepository.spec.js",
        "file:server/repositories/TrustRepository.spec.js",
        "file:server/repositories/WalletRepository.spec.js",
        "file:server/services/TokenService.spec.js",
        "file:server/services/TransferService.spec.js",
        "file:server/services/TrustService.spec.js",
        "file:server/services/WalletService.spec.js",
        "file:__tests__/e2e/__tests__/authentication.test.js",
        "file:__tests__/e2e/__tests__/sendTokens/managingWalletMovesTokensBetweenWallets.test.js",
        "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithTrustRelationship.test.js",
        "file:__tests__/e2e/__tests__/sendTokens/sendTokensWithoutTrustRelationship.test.js",
        "file:__tests__/e2e/__tests__/wallets.test.js",
        "file:__tests__/e2e/config.js",
        "file:__tests__/e2e/database/knex.js",
        "file:__tests__/e2e/database/seed.js",
        "file:__tests__/e2e/database/seed.test.js",
        "file:__tests__/e2e/helpers/tokenActionsHelper.js",
        "file:__tests__/e2e/helpers/walletActionsHelper.js",
        "file:__tests__/e2e/libs/assertionLibrary.js",
        "file:__tests__/e2e/libs/bootstrap.js",
        "file:__tests__/e2e/libs/sessionLibrary.js",
        "file:server/models/Transfer.spec.js",
        "file:server/models/Trust.spec.js",
        "file:server/models/Wallet.spec.js",
        "config:__tests__/mock-data/Meisze.json",
        "config:__tests__/mock-data/TokenA.json",
        "config:__tests__/mock-data/Zaven.json",
        "config:__tests__/e2e/.mocharc.js",
        "document:__tests__/e2e/README.md"
      ]
    }
  ],
  "tour": [
    {
      "order": 1,
      "title": "Project Overview",
      "description": "The README explains what treetracker-wallet-api is: a Node.js/Express REST API backed by PostgreSQL that manages wallets, trust relationships between wallets, and token/bundle transfers. It documents the layered service/model/repository architecture, JWT (RS256) authentication, schema validation, and the test suite, giving you the map for the rest of this tour.",
      "nodeIds": [
        "document:README.md"
      ]
    },
    {
      "order": 2,
      "title": "Bootstrap and App Configuration",
      "description": "server.js is the process entry point: it loads environment variables, sets up logging, and starts the Express app listening on the configured port. app.js does the real assembly work: it enables CORS in dev, enforces content types, parses request bodies, mounts every route, and installs a global error handler. Together these two files are where the whole request/response pipeline is wired together.",
      "nodeIds": [
        "file:server/server.js",
        "file:server/app.js"
      ]
    },
    {
      "order": 3,
      "title": "Routing Layer",
      "description": "server/routes/index.js aggregates all Express sub-routers (auth, token, transfer, trust, wallet, event) into one array that app.js mounts. Each router, such as walletRouter.js, transferRouter.js, and trustRouter.js, maps a URL prefix (/wallets, /transfers, /trust_relationships) to its handler functions. This is the first stop for any incoming HTTP request, before it reaches business logic.",
      "nodeIds": [
        "file:server/routes/index.js",
        "file:server/routes/walletRouter.js",
        "file:server/routes/transferRouter.js",
        "file:server/routes/trustRouter.js"
      ]
    },
    {
      "order": 4,
      "title": "Handlers and Request Validation",
      "description": "Handlers sit directly behind the routers and are the last stop of the request lifecycle before business logic runs. Each handler validates its input with a Joi schema (schemas.js) and then delegates to the matching service: authHandler calls AuthService, transferHandler calls TransferService, trustHandler calls TrustService, and walletHandler calls WalletService and TrustService. Keeping validation and HTTP concerns here keeps the service layer free of Express-specific code.",
      "nodeIds": [
        "file:server/handlers/authHandler/index.js",
        "file:server/handlers/transferHandler/index.js",
        "file:server/handlers/trustHandler/index.js",
        "file:server/handlers/walletHandler/index.js"
      ],
      "languageLesson": "Joi schemas declaratively describe the shape of expected input. Validating at the handler boundary means services can trust their inputs are already well-formed, a common pattern for keeping business logic pure."
    },
    {
      "order": 5,
      "title": "Authentication: JWT and API Keys",
      "description": "AuthService verifies a wallet's hashed password and, on success, calls JWTService to sign an RS256 JSON Web Token using key material from environment variables. Separately, ApiKeyService validates the TREETRACKER-API-KEY header on protected endpoints, checking for existence, deprecation, and endpoint-specific permissions like batch-create access. Every authenticated route in the routing layer from Step 3 passes through one or both of these checks.",
      "nodeIds": [
        "file:server/services/AuthService.js",
        "file:server/services/JWTService.js",
        "file:server/services/ApiKeyService.js"
      ],
      "languageLesson": "RS256 is an asymmetric JWT signing algorithm: a private key signs the token, and a separate public key verifies it. This lets other services verify tokens without ever having access to the signing secret."
    },
    {
      "order": 6,
      "title": "Service Layer: Business Logic",
      "description": "Building on the handlers from Step 4, the service layer holds the real business rules. WalletService handles wallet CRUD, sub-wallet lookups, and control-over authorization checks. TrustService manages requesting, accepting, declining, and cancelling trust relationships between wallets. TransferService is the largest of the three: it orchestrates the full transfer lifecycle (initiate, accept, decline, cancel, fulfill), wrapping every operation in a database transaction and logging an event for each state change.",
      "nodeIds": [
        "file:server/services/WalletService.js",
        "file:server/services/TrustService.js",
        "file:server/services/TransferService.js"
      ]
    },
    {
      "order": 7,
      "title": "Domain Models: Wallet, Trust, Transfer",
      "description": "Beneath the services sit the domain models, which encode the core rules of the wallet/trust/transfer relationship. Wallet.js implements hierarchical control checks between parent and sub-wallets that both trust and transfer logic depend on. Trust.js manages the trust request/accept/decline lifecycle, and Transfer.js orchestrates trust checks, wallet-control checks, and state transitions (pending, requested, completed, cancelled) for every transfer. The enums in trust-enums.js and transfer-enum.js define the exact states and types these models move between.",
      "nodeIds": [
        "file:server/models/Wallet.js",
        "file:server/models/Trust.js",
        "file:server/models/Transfer.js",
        "file:server/utils/trust-enums.js",
        "file:server/utils/transfer-enum.js"
      ]
    },
    {
      "order": 8,
      "title": "Repositories and Database Session",
      "description": "Repositories are the data-access layer models rely on. BaseRepository provides shared CRUD, a recursive where-clause builder, pagination, and batch-insert logic reused by every entity repository, including WalletRepository's complex query that unions self, child, and managed wallets. All of this runs through Session.js, which wraps a knex connection to represent the current transaction, letting callers begin, commit, or roll back a transaction shared across multiple repository calls, exactly what TransferService from Step 6 relies on for atomic transfers.",
      "nodeIds": [
        "file:server/repositories/BaseRepository.js",
        "file:server/repositories/WalletRepository.js",
        "file:server/infra/database/Session.js",
        "file:server/infra/database/knex.js"
      ]
    },
    {
      "order": 9,
      "title": "Database Schema and Migrations",
      "description": "The db-migrate migrations define the PostgreSQL schema that the repositories from Step 8 query against. CreateTableWallet.js creates the core wallet table, CreateTableEntity-Trust.js creates the entity_trust table backing the Trust model, and CreateTableTransfer.js creates the transfer table with its state and type enum columns. The database README explains the db-migrate tool and command reference used to apply these migrations in order.",
      "nodeIds": [
        "file:database/migrations/20200917183542-CreateTableWallet.js",
        "file:database/migrations/20200902014751-CreateTableEntity-Trust.js",
        "file:database/migrations/20200901213254-CreateTableTransfer.js",
        "document:database/README.md"
      ],
      "languageLesson": "Each db-migrate file pairs an up migration with a down migration, so schema changes are both forward-applicable and reversible. Migrations run in timestamp order, forming an append-only history of how the schema evolved."
    },
    {
      "order": 10,
      "title": "Testing Strategy: Unit, Integration, E2E",
      "description": "The project layers three kinds of tests. Unit tests, like TransferService.spec.js, mock the Transfer, Token, Wallet, and Event dependencies to test business logic in isolation. Integration tests, like bundle-transfer-decline.spec.js, exercise real service and repository code against a database, seeded by seed.js, to verify a full scenario such as a declined transfer preserving the token count. End-to-end tests go further still, using config.js and bootstrap.js to run Mocha root hooks that seed and clear a live deployed environment through real HTTP calls, closest to what an actual API client experiences.",
      "nodeIds": [
        "file:server/services/TransferService.spec.js",
        "file:__tests__/integration/bundle-transfer-decline.spec.js",
        "file:__tests__/seed.js",
        "file:__tests__/e2e/config.js",
        "file:__tests__/e2e/libs/bootstrap.js"
      ]
    },
    {
      "order": 11,
      "title": "Containerization",
      "description": "The Dockerfile packages the application for deployment: a single-stage build based on node:16-alpine that installs dependencies with npm ci and starts the app with node. docker-compose.yml is used for local development, spinning up a PostgreSQL 13 database with fixed credentials and a named volume, so the app from Step 2 has a database to migrate and connect to without any manual setup.",
      "nodeIds": [
        "service:Dockerfile",
        "service:docker-compose.yml"
      ],
      "languageLesson": "docker-compose.yml declares services, networks, and volumes as desired state. Named volumes persist data (like the database) across container restarts, while the compose file itself never appears in the production image."
    },
    {
      "order": 12,
      "title": "Kubernetes Deployment",
      "description": "The Kustomize base manifests define how the containerized app from Step 11 runs in production. treetracker-wallet-api-deployment.yaml runs 2 replicas of the container, wiring in JWT keys, the database connection string, and AWS S3 credentials through Kubernetes secrets. kustomization.yaml aggregates the deployment, service, API gateway mapping, migration job, and RBAC manifests into a single applyable resource set, with environment-specific overlays layered on top for development, test, and production.",
      "nodeIds": [
        "config:deployment/base/treetracker-wallet-api-deployment.yaml",
        "config:deployment/base/kustomization.yaml"
      ],
      "languageLesson": "Kubernetes Deployments manage rolling updates across pod replicas. Kustomize overlays let a shared base manifest be patched per environment without duplicating the whole YAML file, keeping dev, test, and production configuration in sync."
    },
    {
      "order": 13,
      "title": "CI/CD Pipelines",
      "description": "GitHub Actions workflows tie the whole tour together. The pull-request workflow lints the code, runs the database migrations from Step 9 against a Postgres service container, and runs the test suite from Step 10 on every pull request. The push-to-master workflow chains three jobs: it builds and pushes a Docker image using the Dockerfile from Step 11, deploys it to the DigitalOcean Kubernetes dev cluster using the manifests from Step 12, and then runs end-to-end tests against the freshly deployed environment, closing the loop from code change to running service.",
      "nodeIds": [
        "pipeline:.github/workflows/treetracker-wallet-api-pull-request-ci.yml",
        "pipeline:.github/workflows/treetracker-wallet-api-build-deploy-dev.yml"
      ],
      "languageLesson": "GitHub Actions workflows use 'on' triggers to decide when they run, 'jobs' to define units of work that can run in parallel or be chained with 'needs', and 'steps' for sequential commands within a job."
    }
  ]
}