diff --git a/apps/auth/.eslintrc.json b/apps/auth/.eslintrc.json new file mode 100644 index 000000000..0cf7eaf64 --- /dev/null +++ b/apps/auth/.eslintrc.json @@ -0,0 +1,50 @@ +{ + "extends": [ + "next/core-web-vitals", + "plugin:storybook/recommended", + "plugin:import/typescript", + "plugin:@typescript-eslint/recommended", + "prettier" + ], + "plugins": ["@typescript-eslint", "import", "prettier"], + "rules": { + "@typescript-eslint/no-extra-semi": "off", + "@typescript-eslint/no-unused-vars": "error", + "@typescript-eslint/prefer-for-of": "error", + "@typescript-eslint/unified-signatures": "error", + "import/no-deprecated": "error", + "import/no-extraneous-dependencies": "error", + "import/no-unassigned-import": "error", + "import/no-unresolved": "off", + "import/order": ["error", { "newlines-between": "always-and-inside-groups" }], + "arrow-body-style": "off", + "prefer-arrow-callback": "error", + "no-duplicate-imports": "error", + "no-empty-function": "error", + "no-empty": ["error", { "allowEmptyCatch": true }], + "no-new-wrappers": "error", + "no-param-reassign": "error", + "no-return-await": "error", + "no-sequences": "error", + "no-throw-literal": "error", + "no-void": "error", + "@typescript-eslint/explicit-module-boundary-types": "off", + "no-async-promise-executor": "off", + "prettier/prettier": [ + "error", + { + "semi": false, + "trailingComma": "all", + "printWidth": 90, + "quoteProps": "consistent", + "singleQuote": false, + "tabWidth": 2, + "useTabs": false, + "bracketSpacing": true, + "arrowParens": "always", + "proseWrap": "preserve", + "endOfLine": "lf" + } + ] + } +} diff --git a/apps/auth/.gitignore b/apps/auth/.gitignore new file mode 100644 index 000000000..2e53351ed --- /dev/null +++ b/apps/auth/.gitignore @@ -0,0 +1,45 @@ +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. + +# dependencies +/node_modules +/.pnp +.pnp.js +.yarn/install-state.gz + +# testing +/coverage + +# next.js +/.next/ +/out/ + +# production +/build + +# misc +.DS_Store +*.pem + +# debug +npm-debug.log* +yarn-debug.log* +yarn-error.log* + +# local env files +.env*.local + +# vercel +.vercel + +# typescript +*.tsbuildinfo +next-env.d.ts + +# browserstack-cypress +log +*.log +tmpBstackPackages +results +build_artifacts +screenshots +downloads diff --git a/apps/auth/.prettierrc.js b/apps/auth/.prettierrc.js new file mode 100644 index 000000000..bacbcd169 --- /dev/null +++ b/apps/auth/.prettierrc.js @@ -0,0 +1,13 @@ +module.exports = { + semi: false, + trailingComma: "all", + printWidth: 90, + quoteProps: "consistent", + singleQuote: false, + tabWidth: 2, + useTabs: false, + bracketSpacing: true, + arrowParens: "always", + proseWrap: "preserve", + endOfLine: "lf", +} diff --git a/apps/auth/.storybook/faker.ts b/apps/auth/.storybook/faker.ts new file mode 100644 index 000000000..755511c09 --- /dev/null +++ b/apps/auth/.storybook/faker.ts @@ -0,0 +1,6 @@ +import { faker } from "@faker-js/faker"; + +// Set a global seed for deterministic results on UI +faker.seed(12345); + +export default faker; diff --git a/apps/auth/.storybook/main.ts b/apps/auth/.storybook/main.ts new file mode 100644 index 000000000..bfa66fcd6 --- /dev/null +++ b/apps/auth/.storybook/main.ts @@ -0,0 +1,36 @@ +import type { StorybookConfig } from "@storybook/nextjs" + +const config: StorybookConfig = { + stories: ["../**/*.mdx", "../**/*.stories.@(js|jsx|mjs|ts|tsx)"], + features: { + experimentalRSC: true, + }, + addons: [ + "@storybook/addon-onboarding", + "@storybook/addon-links", + "@storybook/addon-essentials", + "@chromatic-com/storybook", + "@storybook/addon-interactions", + "@storybook/addon-postcss", + ], + framework: { + name: "@storybook/nextjs", + options: {}, + }, + webpackFinal: async (config) => { + const imageRule = config.module?.rules?.find((rule) => { + const test = (rule as { test: RegExp }).test + if (!test) { + return false + } + return test.test(".svg") + }) as { [key: string]: any } + imageRule.exclude = /\.svg$/ + config.module?.rules?.push({ + test: /\.svg$/, + use: ["@svgr/webpack"], + }) + return config + }, +} +export default config diff --git a/apps/auth/.storybook/mocks.ts b/apps/auth/.storybook/mocks.ts new file mode 100644 index 000000000..205af2bb3 --- /dev/null +++ b/apps/auth/.storybook/mocks.ts @@ -0,0 +1,11 @@ +export const regularChartOfAccountsMockData = JSON.parse(`{ "data": { "chartOfAccounts": { "name": "Chart of Accounts", "categories": [{ "name": "Revenue", "accounts": [{ "__typename": "AccountSet", "id": "00000000-0000-0000-0000-140000000002", "name": "Credit Facilities Interest Revenue Control Account", "hasSubAccounts": false }, { "__typename": "AccountSet", "id": "00000000-0000-0000-0000-140000000001", "name": "Interest Revenue Control Account", "hasSubAccounts": false }], "__typename": "StatementCategory" }, { "name": "Expenses", "accounts": [], "__typename": "StatementCategory" }, { "name": "Liabilities", "accounts": [{ "__typename": "AccountSet", "id": "00000000-0000-0000-0000-120000000001", "name": "Customer Checking Control Account", "hasSubAccounts": false }], "__typename": "StatementCategory" }, { "name": "Equity", "accounts": [{ "__typename": "Account", "id": "a39ffa0a-9e20-ca4f-1034-4b750ee063f5", "name": "Bank Shareholder Equity" }], "__typename": "StatementCategory" }, { "name": "Assets", "accounts": [{ "__typename": "AccountSet", "id": "00000000-0000-0000-0000-110000000001", "name": "Loans Principal Receivable Control Account", "hasSubAccounts": false }, { "__typename": "AccountSet", "id": "00000000-0000-0000-0000-110000000002", "name": "Loans Interest Receivable Control Account", "hasSubAccounts": false }, { "__typename": "Account", "id": "8f04fc5b-2009-dce1-4100-d89c9826c99b", "name": "Bank Deposits from Users Omnibus Account" }, { "__typename": "AccountSet", "id": "00000000-0000-0000-0000-110000000003", "name": "Credit Facilities Disbursed Receivable Control Account", "hasSubAccounts": false }, { "__typename": "Account", "id": "06c2a8af-0583-f80f-7450-26beb9b73f5c", "name": "Bank Reserve from Shareholders" }, { "__typename": "AccountSet", "id": "00000000-0000-0000-0000-110000000004", "name": "Credit Facilities Interest Receivable Control Account", "hasSubAccounts": false }], "__typename": "StatementCategory" }], "__typename": "ChartOfAccounts" } } }`); + +export const offBalanceSheetChartOfAccountsMockData = JSON.parse(`{"data":{"offBalanceSheetChartOfAccounts":{"name":"Off-Balance-Sheet Chart of Accounts","categories":[{"name":"Liabilities (Off-Balance-Sheet)","accounts":[{"__typename":"AccountSet","id":"10000000-0000-0000-0000-210000000002","name":"Credit Facilities Collateral Control Account","hasSubAccounts":false},{"__typename":"Account","id":"69e7ad74-91a4-8a72-6b8e-13a1d2f9bd2b","name":"Omnibus account for credit facility"},{"__typename":"AccountSet","id":"10000000-0000-0000-0000-210000000001","name":"Loans Collateral Control Account","hasSubAccounts":false}],"__typename":"StatementCategory"},{"name":"Assets (Off-Balance-Sheet)","accounts":[{"__typename":"AccountSet","id":"10000000-0000-0000-0000-110000000001","name":"Credit Facility Control Account","hasSubAccounts":false},{"__typename":"Account","id":"cedece5e-f303-cdcb-4158-717cd52a4d53","name":"Omnibus account for BTC collateral"}],"__typename":"StatementCategory"}],"__typename":"ChartOfAccounts"}}}`); + +export const balanceSheetMockData = JSON.parse(`{"data":{"balanceSheet":{"name":"Balance Sheet","balance":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":120483795,"credit":120483795,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":120404865,"credit":120404865,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":78930,"credit":78930,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":120483795,"credit":120483795,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":120404865,"credit":120404865,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":78930,"credit":78930,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"categories":[{"name":"Liabilities","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":120365400,"netDebit":-120365400,"netCredit":120365400,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":120365400,"netDebit":-120365400,"netCredit":120365400,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":120365400,"netDebit":-120365400,"netCredit":120365400,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":120365400,"netDebit":-120365400,"netCredit":120365400,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"accounts":[{"__typename":"AccountSet","id":"00000000-0000-0000-0000-120000000001","name":"Customer Checking Control Account","hasSubAccounts":false,"amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":120365400,"netDebit":-120365400,"netCredit":120365400,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":120365400,"netDebit":-120365400,"netCredit":120365400,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":120365400,"netDebit":-120365400,"netCredit":120365400,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":120365400,"netDebit":-120365400,"netCredit":120365400,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"}}],"__typename":"StatementCategory"},{"name":"Equity","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":39465,"credit":78930,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":39465,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":39465,"credit":78930,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":39465,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"accounts":[{"__typename":"Account","id":"a39ffa0a-9e20-ca4f-1034-4b750ee063f5","name":"Bank Shareholder Equity","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"}},{"__typename":"AccountSet","id":"00000000-0000-0000-0000-100000000004","name":"Net Income","hasSubAccounts":false,"amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":39465,"credit":78930,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":39465,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":39465,"credit":78930,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":39465,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"}}],"__typename":"StatementCategory"},{"name":"Assets","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":120444330,"credit":39465,"netDebit":120404865,"netCredit":-120404865,"__typename":"UsdAccountAmounts"},"settled":{"debit":120404865,"credit":0,"netDebit":120404865,"netCredit":-120404865,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":120444330,"credit":39465,"netDebit":120404865,"netCredit":-120404865,"__typename":"UsdAccountAmounts"},"settled":{"debit":120404865,"credit":0,"netDebit":120404865,"netCredit":-120404865,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"accounts":[{"__typename":"AccountSet","id":"00000000-0000-0000-0000-110000000001","name":"Loans Principal Receivable Control Account","hasSubAccounts":false,"amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"}},{"__typename":"AccountSet","id":"00000000-0000-0000-0000-110000000002","name":"Loans Interest Receivable Control Account","hasSubAccounts":false,"amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"}},{"__typename":"Account","id":"8f04fc5b-2009-dce1-4100-d89c9826c99b","name":"Bank Deposits from Users Omnibus Account","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"}},{"__typename":"AccountSet","id":"00000000-0000-0000-0000-110000000003","name":"Credit Facilities Disbursed Receivable Control Account","hasSubAccounts":false,"amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":120365400,"credit":0,"netDebit":120365400,"netCredit":-120365400,"__typename":"UsdAccountAmounts"},"settled":{"debit":120365400,"credit":0,"netDebit":120365400,"netCredit":-120365400,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":120365400,"credit":0,"netDebit":120365400,"netCredit":-120365400,"__typename":"UsdAccountAmounts"},"settled":{"debit":120365400,"credit":0,"netDebit":120365400,"netCredit":-120365400,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"}},{"__typename":"Account","id":"06c2a8af-0583-f80f-7450-26beb9b73f5c","name":"Bank Reserve from Shareholders","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"}},{"__typename":"AccountSet","id":"00000000-0000-0000-0000-110000000004","name":"Credit Facilities Interest Receivable Control Account","hasSubAccounts":false,"amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":78930,"credit":39465,"netDebit":39465,"netCredit":-39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":39465,"credit":0,"netDebit":39465,"netCredit":-39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":78930,"credit":39465,"netDebit":39465,"netCredit":-39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":39465,"credit":0,"netDebit":39465,"netCredit":-39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"}}],"__typename":"StatementCategory"}],"__typename":"BalanceSheet"}}}`) + +export const profitLossMockData = JSON.parse(`{"data":{"profitAndLossStatement":{"name":"Net Income","net":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":39465,"credit":78930,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":39465,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":39465,"credit":78930,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":39465,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"categories":[{"name":"Revenue","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":39465,"credit":78930,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":39465,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":39465,"credit":78930,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":39465,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"accounts":[{"__typename":"AccountSet","id":"00000000-0000-0000-0000-140000000002","name":"Credit Facilities Interest Revenue Control Account","hasSubAccounts":false,"amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":39465,"credit":78930,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":39465,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":39465,"credit":78930,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":39465,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"}},{"__typename":"AccountSet","id":"00000000-0000-0000-0000-140000000001","name":"Interest Revenue Control Account","hasSubAccounts":false,"amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"}}],"__typename":"StatementCategory"},{"name":"Expenses","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"accounts":[],"__typename":"StatementCategory"}],"__typename":"ProfitAndLossStatement"}}}`) + +export const onBalanceSheetTrialBalanceMockData = JSON.parse(`{"data":{"trialBalance":{"name":"Trial Balance","total":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":120483795,"credit":120483795,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":120404865,"credit":120404865,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":78930,"credit":78930,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":120483795,"credit":120483795,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":120404865,"credit":120404865,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":78930,"credit":78930,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"subAccounts":[{"name":"Loans Principal Receivable Control Account","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"__typename":"AccountSet"},{"name":"Credit Facilities Interest Revenue Control Account","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":39465,"credit":78930,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":39465,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":39465,"credit":78930,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":39465,"netDebit":-39465,"netCredit":39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"__typename":"AccountSet"},{"name":"Credit Facilities Interest Receivable Control Account","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":78930,"credit":39465,"netDebit":39465,"netCredit":-39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":39465,"credit":0,"netDebit":39465,"netCredit":-39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":78930,"credit":39465,"netDebit":39465,"netCredit":-39465,"__typename":"UsdAccountAmounts"},"settled":{"debit":39465,"credit":0,"netDebit":39465,"netCredit":-39465,"__typename":"UsdAccountAmounts"},"pending":{"debit":39465,"credit":39465,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"__typename":"AccountSet"},{"name":"Bank Deposits from Users Omnibus Account","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"__typename":"Account"},{"name":"Credit Facilities Disbursed Receivable Control Account","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":120365400,"credit":0,"netDebit":120365400,"netCredit":-120365400,"__typename":"UsdAccountAmounts"},"settled":{"debit":120365400,"credit":0,"netDebit":120365400,"netCredit":-120365400,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":120365400,"credit":0,"netDebit":120365400,"netCredit":-120365400,"__typename":"UsdAccountAmounts"},"settled":{"debit":120365400,"credit":0,"netDebit":120365400,"netCredit":-120365400,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"__typename":"AccountSet"},{"name":"Bank Reserve from Shareholders","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"__typename":"Account"},{"name":"Customer Checking Control Account","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":120365400,"netDebit":-120365400,"netCredit":120365400,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":120365400,"netDebit":-120365400,"netCredit":120365400,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":120365400,"netDebit":-120365400,"netCredit":120365400,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":120365400,"netDebit":-120365400,"netCredit":120365400,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"__typename":"AccountSet"},{"name":"Interest Revenue Control Account","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"__typename":"AccountSet"},{"name":"Bank Shareholder Equity","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"__typename":"Account"},{"name":"Loans Interest Receivable Control Account","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"__typename":"AccountSet"}],"__typename":"TrialBalance"}}}`) + +export const offBalanceSheetTrialBalanceMockData = JSON.parse(`{"data":{"offBalanceSheetTrialBalance":{"name":"Off-Balance-Sheet Trial Balance","total":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":17000000000,"credit":17000000000,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":17000000000,"credit":17000000000,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":17000000000,"credit":17000000000,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":17000000000,"credit":17000000000,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":1120365400,"credit":1120365400,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":1120365400,"credit":1120365400,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":1120365400,"credit":1120365400,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":1120365400,"credit":1120365400,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"subAccounts":[{"name":"Omnibus account for BTC collateral","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":17000000000,"credit":0,"netDebit":17000000000,"netCredit":-17000000000,"__typename":"BtcAccountAmounts"},"settled":{"debit":17000000000,"credit":0,"netDebit":17000000000,"netCredit":-17000000000,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":17000000000,"credit":0,"netDebit":17000000000,"netCredit":-17000000000,"__typename":"BtcAccountAmounts"},"settled":{"debit":17000000000,"credit":0,"netDebit":17000000000,"netCredit":-17000000000,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"__typename":"Account"},{"name":"Loans Collateral Control Account","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"__typename":"AccountSet"},{"name":"Credit Facility Control Account","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":1000000000,"credit":120365400,"netDebit":879634600,"netCredit":-879634600,"__typename":"UsdAccountAmounts"},"settled":{"debit":1000000000,"credit":120365400,"netDebit":879634600,"netCredit":-879634600,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":1000000000,"credit":120365400,"netDebit":879634600,"netCredit":-879634600,"__typename":"UsdAccountAmounts"},"settled":{"debit":1000000000,"credit":120365400,"netDebit":879634600,"netCredit":-879634600,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"__typename":"AccountSet"},{"name":"Credit Facilities Collateral Control Account","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":17000000000,"netDebit":-17000000000,"netCredit":17000000000,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":17000000000,"netDebit":-17000000000,"netCredit":17000000000,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":17000000000,"netDebit":-17000000000,"netCredit":17000000000,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":17000000000,"netDebit":-17000000000,"netCredit":17000000000,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"__typename":"AccountSet"},{"name":"Omnibus account for credit facility","amounts":{"btc":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"closingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"amount":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"BtcAccountAmounts"},"__typename":"LayeredBtcAccountAmounts"},"__typename":"BtcAccountAmountsInPeriod"},"usd":{"openingBalance":{"all":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"settled":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"closingBalance":{"all":{"debit":120365400,"credit":1000000000,"netDebit":-879634600,"netCredit":879634600,"__typename":"UsdAccountAmounts"},"settled":{"debit":120365400,"credit":1000000000,"netDebit":-879634600,"netCredit":879634600,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"amount":{"all":{"debit":120365400,"credit":1000000000,"netDebit":-879634600,"netCredit":879634600,"__typename":"UsdAccountAmounts"},"settled":{"debit":120365400,"credit":1000000000,"netDebit":-879634600,"netCredit":879634600,"__typename":"UsdAccountAmounts"},"pending":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"encumbrance":{"debit":0,"credit":0,"netDebit":0,"netCredit":0,"__typename":"UsdAccountAmounts"},"__typename":"LayeredUsdAccountAmounts"},"__typename":"UsdAccountAmountsInPeriod"},"__typename":"AccountAmountsByCurrency"},"__typename":"Account"}],"__typename":"TrialBalance"}}}`); diff --git a/apps/auth/.storybook/preview.tsx b/apps/auth/.storybook/preview.tsx new file mode 100644 index 000000000..9b98bdbef --- /dev/null +++ b/apps/auth/.storybook/preview.tsx @@ -0,0 +1,86 @@ +import React from "react" +import type { Preview } from "@storybook/react" +import { MockedProvider } from "@apollo/client/testing" +import "../app/globals.css" +import { AppSidebar } from "../components/app-sidebar" +import { SidebarInset, SidebarProvider } from "../ui/sidebar" +import { + AvatarDocument, + GetRealtimePriceUpdatesDocument, + Role, +} from "../lib/graphql/generated" +import { mockRealtimePrice } from "../lib/graphql/generated/mocks" +import { AppLayout } from "../app/app-layout" + +const defaultMocks = [ + { + request: { query: AvatarDocument }, + result: { + data: { + me: { + user: { + userId: "usr_123", + email: "test@example.com", + roles: [Role.Admin], + }, + }, + }, + }, + }, + { + request: { query: GetRealtimePriceUpdatesDocument }, + result: { + data: { + realtimePrice: mockRealtimePrice({ + usdCentsPerBtc: 100000, + }), + }, + }, + }, +] + +const StorybookWrapper = ({ children, mocks = [] }) => ( +