@plyaz/config 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
+ var chains = require('viem/chains');
4
+
3
5
  // @plyaz package - Built with tsup
4
- var __defProp = Object.defineProperty;
5
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
6
 
7
7
  // src/env.ts
8
8
  var isServer = typeof window === "undefined";
@@ -64,95 +64,19 @@ var CONTRACTS = {
64
64
  }
65
65
  }
66
66
  };
67
-
68
- // node_modules/.pnpm/viem@2.33.1_typescript@5.8.3/node_modules/viem/_esm/utils/chain/defineChain.js
69
- function defineChain(chain) {
70
- return {
71
- formatters: void 0,
72
- fees: void 0,
73
- serializers: void 0,
74
- ...chain
75
- };
76
- }
77
- __name(defineChain, "defineChain");
78
-
79
- // node_modules/.pnpm/viem@2.33.1_typescript@5.8.3/node_modules/viem/_esm/chains/definitions/mainnet.js
80
- var mainnet = /* @__PURE__ */ defineChain({
81
- id: 1,
82
- name: "Ethereum",
83
- nativeCurrency: { name: "Ether", symbol: "ETH", decimals: 18 },
84
- rpcUrls: {
85
- default: {
86
- http: ["https://eth.merkle.io"]
87
- }
88
- },
89
- blockExplorers: {
90
- default: {
91
- name: "Etherscan",
92
- url: "https://etherscan.io",
93
- apiUrl: "https://api.etherscan.io/api"
94
- }
95
- },
96
- contracts: {
97
- ensRegistry: {
98
- address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"
99
- },
100
- ensUniversalResolver: {
101
- address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67",
102
- blockCreated: 19258213
103
- },
104
- multicall3: {
105
- address: "0xca11bde05977b3631167028862be2a173976ca11",
106
- blockCreated: 14353601
107
- }
108
- }
109
- });
110
-
111
- // node_modules/.pnpm/viem@2.33.1_typescript@5.8.3/node_modules/viem/_esm/chains/definitions/sepolia.js
112
- var sepolia = /* @__PURE__ */ defineChain({
113
- id: 11155111,
114
- name: "Sepolia",
115
- nativeCurrency: { name: "Sepolia Ether", symbol: "ETH", decimals: 18 },
116
- rpcUrls: {
117
- default: {
118
- http: ["https://sepolia.drpc.org"]
119
- }
120
- },
121
- blockExplorers: {
122
- default: {
123
- name: "Etherscan",
124
- url: "https://sepolia.etherscan.io",
125
- apiUrl: "https://api-sepolia.etherscan.io/api"
126
- }
127
- },
128
- contracts: {
129
- multicall3: {
130
- address: "0xca11bde05977b3631167028862be2a173976ca11",
131
- blockCreated: 751532
132
- },
133
- ensRegistry: { address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e" },
134
- ensUniversalResolver: {
135
- address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",
136
- blockCreated: 5317080
137
- }
138
- },
139
- testnet: true
140
- });
141
-
142
- // src/chains/supportedChains.ts
143
67
  var PROD_SUPPORTED_CHAINS = {
144
68
  // Mainnets
145
- ethereum: mainnet
69
+ ethereum: chains.mainnet
146
70
  };
147
71
  var STAGING_SUPPORTED_CHAINS = {
148
72
  // Mainnets
149
- ethereum: mainnet,
73
+ ethereum: chains.mainnet,
150
74
  // Testnets
151
- sepolia
75
+ sepolia: chains.sepolia
152
76
  };
153
77
  var DEV_SUPPORTED_CHAINS = {
154
78
  // Testnets
155
- sepolia
79
+ sepolia: chains.sepolia
156
80
  };
157
81
 
158
82
  // src/features.ts
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/env.ts","../src/providers/alchemy.ts","../src/providers/oauth.ts","../src/chains/contracts.ts","../node_modules/.pnpm/viem@2.33.1_typescript@5.8.3/node_modules/viem/utils/chain/defineChain.ts","../node_modules/.pnpm/viem@2.33.1_typescript@5.8.3/node_modules/viem/chains/definitions/mainnet.ts","../node_modules/.pnpm/viem@2.33.1_typescript@5.8.3/node_modules/viem/chains/definitions/sepolia.ts","../src/chains/supportedChains.ts","../src/features.ts","../src/domains.ts","../src/constants.ts","../src/app.ts","../src/security.ts","../src/api.ts","../src/utils/string/constants.ts","../src/utils/collection/constants.ts","../src/http/constants.ts","../src/time/constants.ts","../src/math/constants.ts","../src/performance/index.ts","../src/network/constants.ts","../src/display/constants.ts"],"names":[],"mappings":";;;;;;;AAAO,IAAM,QAAA,GAAW,OAAO,MAAA,KAAW;AACnC,IAAM,KAAA,GAAQ,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa;AAClD,IAAM,MAAA,GAAS,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa;AACnD,IAAM,MAAA,GAAS,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa;;;ACHnD,IAAM,cAAA,GAAiB;AAAA,EAC5B,MAAA,EAAQ,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,uBAAA;AAAA,EAC/B,OAAA,EAAS;AAAA,IACP,QAAA,EAAU,CAAA,qCAAA,EAAwC,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAAA,IAChG,OAAA,EAAS,CAAA,yCAAA,EAA4C,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAAA,IACnG,QAAA,EAAU,CAAA,qCAAA,EAAwC,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAAA,IAChG,QAAA,EAAU,CAAA,qCAAA,EAAwC,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAAA,IAChG,IAAA,EAAM,CAAA,sCAAA,EAAyC,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAAA,IAC7F,MAAA,EAAQ,CAAA,wCAAA,EAA2C,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA;AAAA;AAErG;;;ACVO,IAAM,eAAA,GAAkB;AAAA,EAC7B,MAAA,EAAQ;AAAA,IACN,QAAA,EAAU,UAAA,CAAW,OAAA,CAAQ,GAAA,C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B,eAAA,EAAiB,GAAA;AAAA;AAAA;AAAA;AAAA,EAKjB,sBAAA,EAAwB;AAC1B;;;ACzBO,IAAM,iBAAA,GAAoB;AAAA;AAAA;AAAA;AAAA,EAI/B,oBAAA,EAAsB,EAAA;AAAA;AAAA;AAAA;AAAA,EAKtB,sBAAA,EAAwB,EAAA;AAAA;AAAA;AAAA;AAAA,EAKxB,iBAAA,EAAmB;AACrB;AAKO,IAAM,UAAA,GAAa;AAAA;AAAA;AAAA;AAAA,EAIxB,WAAA,EAAa,EAAA;AAAA;AAAA;AAAA;AAAA,EAKb,aAAA,EAAe,EAAA;AAAA;AAAA;AAAA;AAAA,EAKf,KAAA,EAAO;AACT","file":"index.cjs","sourcesContent":["export const isServer = typeof window === 'undefined';\nexport const isDev = globalThis.process.env.NODE_ENV === 'development';\nexport const isProd = globalThis.process.env.NODE_ENV === 'production';\nexport const isTest = globalThis.process.env.NODE_ENV === 'test';\n","export const ALCHEMY_CONFIG = {\n apiKey: globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY!,\n rpcUrls: {\n ethereum: `https://eth-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n polygon: `https://polygon-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n arbitrum: `https://arb-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n optimism: `https://opt-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n base: `https://base-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n solana: `https://solana-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n },\n};\n","export const OAUTH_PROVIDERS = {\n google: {\n clientId: globalThis.process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID!,\n clientSecret: globalThis.process.env.GOOGLE_CLIENT_SECRET!,\n redirectUri: globalThis.process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URI!,\n scopes: ['openid', 'profile', 'email'],\n },\n discord: {\n clientId: globalThis.process.env.NEXT_PUBLIC_DISCORD_CLIENT_ID!,\n clientSecret: globalThis.process.env.DISCORD_CLIENT_SECRET!,\n redirectUri: globalThis.process.env.NEXT_PUBLIC_DISCORD_REDIRECT_URI!,\n scopes: ['identify', 'email'],\n },\n facebook: {\n clientId: globalThis.process.env.NEXT_PUBLIC_FACEBOOK_CLIENT_ID!,\n clientSecret: globalThis.process.env.FACEBOOK_CLIENT_SECRET!,\n redirectUri: globalThis.process.env.NEXT_PUBLIC_FACEBOOK_REDIRECT_URI!,\n scopes: ['public_profile', 'email'],\n },\n} as const;\n","export const CONTRACTS = {\n nftManager: {\n read: {\n arbitrum: '',\n },\n write: {\n arbitrum: '',\n },\n },\n tokenManager: {\n read: {\n arbitrum: '',\n },\n write: {\n arbitrum: '',\n },\n },\n} as const;\n","import type { Chain, ChainFormatters } from '../../types/chain.js'\nimport type { Assign, Prettify } from '../../types/utils.js'\n\nexport function defineChain<\n formatters extends ChainFormatters,\n const chain extends Chain<formatters>,\n>(chain: chain): Prettify<Assign<Chain<undefined>, chain>> {\n return {\n formatters: undefined,\n fees: undefined,\n serializers: undefined,\n ...chain,\n } as Assign<Chain<undefined>, chain>\n}\n","import { defineChain } from '../../utils/chain/defineChain.js'\n\nexport const mainnet = /*#__PURE__*/ defineChain({\n id: 1,\n name: 'Ethereum',\n nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },\n rpcUrls: {\n default: {\n http: ['https://eth.merkle.io'],\n },\n },\n blockExplorers: {\n default: {\n name: 'Etherscan',\n url: 'https://etherscan.io',\n apiUrl: 'https://api.etherscan.io/api',\n },\n },\n contracts: {\n ensRegistry: {\n address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e',\n },\n ensUniversalResolver: {\n address: '0xce01f8eee7E479C928F8919abD53E553a36CeF67',\n blockCreated: 19_258_213,\n },\n multicall3: {\n address: '0xca11bde05977b3631167028862be2a173976ca11',\n blockCreated: 14_353_601,\n },\n },\n})\n","import { defineChain } from '../../utils/chain/defineChain.js'\n\nexport const sepolia = /*#__PURE__*/ defineChain({\n id: 11_155_111,\n name: 'Sepolia',\n nativeCurrency: { name: 'Sepolia Ether', symbol: 'ETH', decimals: 18 },\n rpcUrls: {\n default: {\n http: ['https://sepolia.drpc.org'],\n },\n },\n blockExplorers: {\n default: {\n name: 'Etherscan',\n url: 'https://sepolia.etherscan.io',\n apiUrl: 'https://api-sepolia.etherscan.io/api',\n },\n },\n contracts: {\n multicall3: {\n address: '0xca11bde05977b3631167028862be2a173976ca11',\n blockCreated: 751532,\n },\n ensRegistry: { address: '0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e' },\n ensUniversalResolver: {\n address: '0xc8Af999e38273D658BE1b921b88A9Ddf005769cC',\n blockCreated: 5_317_080,\n },\n },\n testnet: true,\n})\n","import { mainnet, sepolia } from 'viem/chains';\n\nexport const PROD_SUPPORTED_CHAINS = {\n // Mainnets\n ethereum: mainnet,\n} as const;\n\nexport const STAGING_SUPPORTED_CHAINS = {\n // Mainnets\n ethereum: mainnet,\n // Testnets\n sepolia,\n} as const;\n\nexport const DEV_SUPPORTED_CHAINS = {\n // Testnets\n sepolia,\n} as const;\n","import { isDev } from './env';\n\nexport const FEATURES = {\n // Authentication & Auth Providers\n // eslint-disable-next-line @typescript-eslint/naming-convention\n AUTH_GOOGLE: true,\n // eslint-disable-next-line @typescript-eslint/naming-convention\n AUTH_DISCORD: isDev,\n AUTH_FACEBOOK: false,\n AUTH_GITHUB: true,\n} as const satisfies Record<string, boolean>;\n\n/**\n * Default backend configuration for feature flags.\n * Optimized for server-side usage with reasonable defaults.\n */\nexport const DEFAULT_BACKEND_CONFIG = {\n provider: 'database',\n isCacheEnabled: true,\n cacheTtl: 300, // 5 minutes\n refreshInterval: 60, // 1 minute auto-refresh\n shouldFallbackToDefaults: true,\n isLoggingEnabled: globalThis.process.env.NODE_ENV === 'development',\n} as const;\n\n/**\n * Default frontend configuration for feature flags.\n * Optimized for client-side usage with reasonable defaults.\n */\nexport const DEFAULT_FRONTEND_CONFIG = {\n provider: 'memory',\n isCacheEnabled: true,\n cacheTtl: 300, // 5 minutes\n refreshInterval: 0, // No auto-refresh for frontend\n shouldFallbackToDefaults: true,\n isLoggingEnabled: false, // Disabled in production\n} as const;\n","export const DOMAINS = {\n app: 'https://plyaz.co.uk',\n api: globalThis.process.env.NEXT_PUBLIC_API_URL!,\n} as const;\n","export const DEFAULT_LOCALE = 'en';\nexport const SUPPORTED_LOCALES = ['en', 'es', 'pt'] as const;\nexport const TIMEZONE = 'Europe/London';","import { DEFAULT_LOCALE, SUPPORTED_LOCALES } from './constants';\n\nexport const LANDING_PAGE_APP = {\n NAME: 'Plyaz',\n VERSION: '1.0.0',\n DEFAULT_LOCALE,\n SUPPORTED_LOCALES,\n} as const;\n\nexport const WEB_APP = {\n NAME: 'Plyaz The App',\n VERSION: '1.0.0',\n DEFAULT_LOCALE,\n SUPPORTED_LOCALES,\n} as const;\n","export const SECURITY = {\n BLOCKED_REGIONS: ['KP', 'SY', 'IR', 'CU', 'SD', 'SO', 'UA-CR', 'UA-DP', 'UA-LU'],\n} as const;\n","export const API_CONFIG = {} as const;\n\nexport const CACHE_CONFIG = {\n // Cache TTL in seconds\n ttl: {\n short: 300, // 5 minutes\n medium: 1800, // 30 minutes\n long: 3600, // 1 hour\n extended: 86400, // 24 hours\n },\n\n // Cache keys\n keys: {\n user: 'user:',\n nft: 'nft:',\n blockchain: 'blockchain:',\n auth: 'auth:',\n },\n\n // Redis configuration\n redis: {\n url: globalThis.process.env.REDIS_URL!,\n keyPrefix: 'plyaz:',\n maxRetriesPerRequest: 3,\n // eslint-disable-next-line @typescript-eslint/naming-convention\n lazyConnect: true,\n },\n} as const;\n\nexport const WEBHOOK_CONFIG = {} as const;\n","/**\n * String Manipulation Constants\n *\n * Constants used for string generation, manipulation,\n * and UUID-related operations.\n *\n * @module utils/string/constants\n */\n\n/**\n * String generation and manipulation constants\n */\nexport const STRING_CONSTANTS = {\n /**\n * Starting position for random string extraction\n */\n RANDOM_STRING_START: 2,\n\n /**\n * Length of random string segment\n */\n RANDOM_STRING_LENGTH: 9,\n\n /**\n * Multiplier for UUID random value generation\n */\n UUID_RANDOM_MULTIPLIER: 16,\n\n /**\n * Hexadecimal mask for UUID generation\n */\n UUID_HEX_MASK: 0x3,\n\n /**\n * OR value for UUID hexadecimal operations\n */\n UUID_HEX_OR_VALUE: 0x8,\n} as const;\n\n/**\n * Type for string constant values\n */\nexport type StringConstant = (typeof STRING_CONSTANTS)[keyof typeof STRING_CONSTANTS];\n","/**\n * Collection and Array Constants\n *\n * Constants for array operations, pagination,\n * and collection manipulation.\n *\n * @module utils/collection/constants\n */\n\n/**\n * Array and collection operation constants\n */\nexport const COLLECTION_CONSTANTS = {\n /**\n * Center point for array splitting (50%)\n */\n ARRAY_SPLIT_CENTER: 0.5,\n\n /**\n * Default page size for pagination\n */\n DEFAULT_PAGE_SIZE: 10,\n\n /**\n * Default maximum number of retries for operations\n */\n DEFAULT_MAX_RETRIES: 3,\n\n /**\n * Constant for three items (used in various contexts)\n */\n THREE_ITEMS: 3,\n} as const;\n\n/**\n * Type for collection constant values\n */\nexport type CollectionConstant = (typeof COLLECTION_CONSTANTS)[keyof typeof COLLECTION_CONSTANTS];\n","/**\n * HTTP Status Code Constants\n *\n * Common HTTP status codes used throughout the application.\n * Based on RFC 9110 (HTTP Semantics) and common usage patterns.\n *\n * @module http/constants\n */\n\n/**\n * Standard HTTP status codes\n */\nexport const HTTP_STATUS = {\n /**\n * 200 OK - The request succeeded\n */\n OK: 200,\n\n /**\n * 201 Created - The request succeeded and a new resource was created\n */\n CREATED: 201,\n\n /**\n * 302 Found - The resource resides temporarily under a different URI\n */\n FOUND: 302,\n\n /**\n * 307 Temporary Redirect - The request should be repeated with another URI\n */\n TEMPORARY_REDIRECT: 307,\n\n /**\n * 400 Bad Request - The server cannot process the request due to client error\n */\n BAD_REQUEST: 400,\n\n /**\n * 401 Unauthorized - Authentication is required and has failed or not been provided\n */\n UNAUTHORIZED: 401,\n\n /**\n * 403 Forbidden - The server understood the request but refuses to authorize it\n */\n FORBIDDEN: 403,\n\n /**\n * 404 Not Found - The server cannot find the requested resource\n */\n NOT_FOUND: 404,\n\n /**\n * 500 Internal Server Error - The server encountered an unexpected condition\n */\n INTERNAL_SERVER_ERROR: 500,\n} as const;\n\n/**\n * Type for HTTP status codes\n */\nexport type HttpStatusCode = (typeof HTTP_STATUS)[keyof typeof HTTP_STATUS];\n","/**\n * Time-related Constants\n *\n * Common time values and durations used throughout the application\n * for timeouts, delays, caching, and other time-based operations.\n *\n * @module time/constants\n */\n\n/**\n * Time conversion and duration constants\n */\nexport const TIME_CONSTANTS = {\n /**\n * Number of milliseconds in one second\n */\n MILLISECONDS_PER_SECOND: 1000,\n\n /**\n * Number of seconds in one minute\n */\n SECONDS_PER_MINUTE: 60,\n\n /**\n * Number of minutes in one hour\n */\n MINUTES_PER_HOUR: 60,\n\n /**\n * Number of hours in one day\n */\n HOURS_PER_DAY: 24,\n\n /**\n * Default timeout duration in milliseconds (5 seconds)\n */\n DEFAULT_TIMEOUT: 5000,\n\n /**\n * Default retry delay in milliseconds (100ms)\n */\n DEFAULT_RETRY_DELAY: 100,\n\n /**\n * Default number of retry attempts\n */\n DEFAULT_RETRY_ATTEMPTS: 3,\n\n /**\n * Default debounce delay in milliseconds (50ms)\n */\n DEFAULT_DEBOUNCE_DELAY: 50,\n\n /**\n * Default animation frame duration in milliseconds (~60fps)\n */\n DEFAULT_ANIMATION_FRAME: 16.67,\n\n /**\n * Default cache time-to-live in seconds (5 minutes)\n */\n DEFAULT_CACHE_TTL: 300,\n\n /**\n * Default port number for servers\n */\n DEFAULT_PORT: 3000,\n\n /**\n * WebSocket abnormal closure code\n */\n WEBSOCKET_CLOSE_ABNORMAL: 1006,\n\n /**\n * WebSocket retry delay in milliseconds (500ms)\n */\n WEBSOCKET_RETRY_DELAY: 500,\n} as const;\n\n/**\n * Type for time constant values\n */\nexport type TimeConstant = (typeof TIME_CONSTANTS)[keyof typeof TIME_CONSTANTS];\n","/**\n * Mathematical Constants\n *\n * Common mathematical values, number system bases, and calculation constants\n * used throughout the application for various computations.\n *\n * @module math/constants\n */\n\n/**\n * Number system base constants\n */\nexport const NUMBER_SYSTEM = {\n /**\n * Base 2 - Binary number system\n */\n BINARY_BASE: 2,\n\n /**\n * Base 8 - Octal number system\n */\n OCTAL_BASE: 8,\n\n /**\n * Base 10 - Decimal number system\n */\n DECIMAL_BASE: 10,\n\n /**\n * Base 16 - Hexadecimal number system\n */\n HEX_BASE: 16,\n\n /**\n * Base 36 - Alphanumeric number system (0-9, a-z)\n */\n BASE36: 36,\n} as const;\n\n/**\n * Mathematical and percentage constants\n */\nexport const MATH_CONSTANTS = {\n /**\n * Half value (50%)\n */\n HALF: 0.5,\n\n /**\n * One tenth (10%)\n */\n TENTH: 0.1,\n\n /**\n * One twentieth (5%)\n */\n TWENTIETH: 0.05,\n\n /**\n * 95th percentile\n */\n PERCENT_95: 0.95,\n\n /**\n * 99th percentile\n */\n PERCENT_99: 0.99,\n\n /**\n * Threshold for quadratic algorithm detection\n */\n QUADRATIC_THRESHOLD: 1.5,\n\n /**\n * Threshold for exponential algorithm detection\n */\n EXPONENTIAL_THRESHOLD: 3,\n\n /**\n * Multiplier for variance calculations\n */\n VARIANCE_MULTIPLIER: 4,\n\n /**\n * Offset for variance calculations\n */\n VARIANCE_OFFSET: 2,\n} as const;\n\n/**\n * Type for number system values\n */\nexport type NumberSystemBase = (typeof NUMBER_SYSTEM)[keyof typeof NUMBER_SYSTEM];\n\n/**\n * Type for math constant values\n */\nexport type MathConstant = (typeof MATH_CONSTANTS)[keyof typeof MATH_CONSTANTS];\n","/**\n * Performance Module\n *\n * Performance monitoring and benchmarking constants used for\n * measuring application performance, detecting memory leaks,\n * and configuring performance tests.\n *\n * @module performance\n */\n\n/**\n * Performance measurement constants\n */\nexport const PERFORMANCE_CONSTANTS = {\n /**\n * Threshold for detecting memory leaks (10% growth)\n */\n MEMORY_LEAK_THRESHOLD: 0.1,\n\n /**\n * Default number of benchmark runs for performance testing\n */\n DEFAULT_BENCHMARK_RUNS: 100,\n\n /**\n * Default number of warmup runs before benchmarking\n */\n DEFAULT_WARMUP_RUNS: 10,\n} as const;\n\n/**\n * Type for performance constant values\n */\nexport type PerformanceConstant =\n (typeof PERFORMANCE_CONSTANTS)[keyof typeof PERFORMANCE_CONSTANTS];\n","/**\n * Network-related Constants\n *\n * Constants for network operations including IP addresses,\n * byte ranges, and process identifiers.\n *\n * @module network/constants\n */\n\n/**\n * Network and connection constants\n */\nexport const NETWORK_CONSTANTS = {\n /**\n * Minimum value for an IPv4 octet (excluding 0 for first octet)\n */\n IPV4_OCTET_MIN: 1,\n\n /**\n * Maximum value for an IPv4 octet\n */\n IPV4_OCTET_MAX: 255,\n\n /**\n * Number of octets in an IPv4 address\n */\n IPV4_OCTET_COUNT: 4,\n\n /**\n * Maximum value for a random byte (256 exclusive)\n */\n RANDOM_BYTE_MAX: 256,\n\n /**\n * Default maximum process ID for testing\n */\n DEFAULT_PROCESS_ID_MAX: 10000,\n} as const;\n\n/**\n * Type for network constant values\n */\nexport type NetworkConstant = (typeof NETWORK_CONSTANTS)[keyof typeof NETWORK_CONSTANTS];\n","/**\n * Display and Character Constants\n *\n * Constants for display formatting, charting,\n * and character code operations.\n *\n * @module display/constants\n */\n\n/**\n * Display and chart formatting constants\n */\nexport const DISPLAY_CONSTANTS = {\n /**\n * Maximum length for chart bar display\n */\n CHART_BAR_MAX_LENGTH: 40,\n\n /**\n * Length of chart separator lines\n */\n CHART_SEPARATOR_LENGTH: 60,\n\n /**\n * Number of decimal places for display precision\n */\n DECIMAL_PRECISION: 3,\n} as const;\n\n/**\n * Character code constants\n */\nexport const CHAR_CODES = {\n /**\n * ASCII code for lowercase 'a'\n */\n LOWERCASE_A: 97,\n\n /**\n * Number of letters in the alphabet\n */\n ALPHABET_SIZE: 26,\n\n /**\n * ASCII code for space character\n */\n SPACE: 32,\n} as const;\n\n/**\n * Type for display constant values\n */\nexport type DisplayConstant = (typeof DISPLAY_CONSTANTS)[keyof typeof DISPLAY_CONSTANTS];\n\n/**\n * Type for character code values\n */\nexport type CharCode = (typeof CHAR_CODES)[keyof typeof CHAR_CODES];\n"]}
1
+ {"version":3,"sources":["../src/env.ts","../src/providers/alchemy.ts","../src/providers/oauth.ts","../src/chains/contracts.ts","../src/chains/supportedChains.ts","../src/features.ts","../src/domains.ts","../src/constants.ts","../src/app.ts","../src/security.ts","../src/api.ts","../src/utils/string/constants.ts","../src/utils/collection/constants.ts","../src/http/constants.ts","../src/time/constants.ts","../src/math/constants.ts","../src/performance/index.ts","../src/network/constants.ts","../src/display/constants.ts"],"names":["mainnet","sepolia"],"mappings":";;;;;;;AAAO,IAAM,QAAA,GAAW,OAAO,MAAA,KAAW;AACnC,IAAM,KAAA,GAAQ,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa;AAClD,IAAM,MAAA,GAAS,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa;AACnD,IAAM,MAAA,GAAS,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa;;;ACHnD,IAAM,cAAA,GAAiB;AAAA,EAC5B,MAAA,EAAQ,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,uBAAA;AAAA,EAC/B,OAAA,EAAS;AAAA,IACP,QAAA,EAAU,CAAA,qCAAA,EAAwC,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAAA,IAChG,OAAA,EAAS,CAAA,yCAAA,EAA4C,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAAA,IACnG,QAAA,EAAU,CAAA,qCAAA,EAAwC,UAAA,CAAW,OAAA,CAAQ,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qBAAA,EAAuB,GAAA;AAAA;AAAA;AAAA;AAAA,EAKvB,sBAAA,EAAwB,GAAA;AAAA;AAAA;AAAA;AAAA,EAKxB,mBAAA,EAAqB;AACvB;;;AChBO,IAAM,iBAAA,GAAoB;AAAA;AAAA;AAAA;AAAA,EAI/B,cAAA,EAAgB,CAAA;AAAA;AAAA;AAAA;AAAA,EAKhB,cAAA,EAAgB,GAAA;AAAA;AAAA;AAAA;AAAA,EAKhB,gBAAA,EAAkB,CAAA;AAAA;AAAA;AAAA;AAAA,EAKlB,eAAA,EAAiB,GAAA;AAAA;AAAA;AAAA;AAAA,EAKjB,sBAAA,EAAwB;AAC1B;;;ACzBO,IAAM,iBAAA,GAAoB;AAAA;AAAA;AAAA;AAAA,EAI/B,oBAAA,EAAsB,EAAA;AAAA;AAAA;AAAA;AAAA,EAKtB,sBAAA,EAAwB,EAAA;AAAA;AAAA;AAAA;AAAA,EAKxB,iBAAA,EAAmB;AACrB;AAKO,IAAM,UAAA,GAAa;AAAA;AAAA;AAAA;AAAA,EAIxB,WAAA,EAAa,EAAA;AAAA;AAAA;AAAA;AAAA,EAKb,aAAA,EAAe,EAAA;AAAA;AAAA;AAAA;AAAA,EAKf,KAAA,EAAO;AACT","file":"index.cjs","sourcesContent":["export const isServer = typeof window === 'undefined';\nexport const isDev = globalThis.process.env.NODE_ENV === 'development';\nexport const isProd = globalThis.process.env.NODE_ENV === 'production';\nexport const isTest = globalThis.process.env.NODE_ENV === 'test';\n","export const ALCHEMY_CONFIG = {\n apiKey: globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY!,\n rpcUrls: {\n ethereum: `https://eth-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n polygon: `https://polygon-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n arbitrum: `https://arb-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n optimism: `https://opt-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n base: `https://base-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n solana: `https://solana-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n },\n};\n","export const OAUTH_PROVIDERS = {\n google: {\n clientId: globalThis.process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID!,\n clientSecret: globalThis.process.env.GOOGLE_CLIENT_SECRET!,\n redirectUri: globalThis.process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URI!,\n scopes: ['openid', 'profile', 'email'],\n },\n discord: {\n clientId: globalThis.process.env.NEXT_PUBLIC_DISCORD_CLIENT_ID!,\n clientSecret: globalThis.process.env.DISCORD_CLIENT_SECRET!,\n redirectUri: globalThis.process.env.NEXT_PUBLIC_DISCORD_REDIRECT_URI!,\n scopes: ['identify', 'email'],\n },\n facebook: {\n clientId: globalThis.process.env.NEXT_PUBLIC_FACEBOOK_CLIENT_ID!,\n clientSecret: globalThis.process.env.FACEBOOK_CLIENT_SECRET!,\n redirectUri: globalThis.process.env.NEXT_PUBLIC_FACEBOOK_REDIRECT_URI!,\n scopes: ['public_profile', 'email'],\n },\n} as const;\n","export const CONTRACTS = {\n nftManager: {\n read: {\n arbitrum: '',\n },\n write: {\n arbitrum: '',\n },\n },\n tokenManager: {\n read: {\n arbitrum: '',\n },\n write: {\n arbitrum: '',\n },\n },\n} as const;\n","import { mainnet, sepolia } from 'viem/chains';\n\nexport const PROD_SUPPORTED_CHAINS = {\n // Mainnets\n ethereum: mainnet,\n} as const;\n\nexport const STAGING_SUPPORTED_CHAINS = {\n // Mainnets\n ethereum: mainnet,\n // Testnets\n sepolia,\n} as const;\n\nexport const DEV_SUPPORTED_CHAINS = {\n // Testnets\n sepolia,\n} as const;\n","import { isDev } from './env';\n\nexport const FEATURES = {\n // Authentication & Auth Providers\n // eslint-disable-next-line @typescript-eslint/naming-convention\n AUTH_GOOGLE: true,\n // eslint-disable-next-line @typescript-eslint/naming-convention\n AUTH_DISCORD: isDev,\n AUTH_FACEBOOK: false,\n AUTH_GITHUB: true,\n} as const satisfies Record<string, boolean>;\n\n/**\n * Default backend configuration for feature flags.\n * Optimized for server-side usage with reasonable defaults.\n */\nexport const DEFAULT_BACKEND_CONFIG = {\n provider: 'database',\n isCacheEnabled: true,\n cacheTtl: 300, // 5 minutes\n refreshInterval: 60, // 1 minute auto-refresh\n shouldFallbackToDefaults: true,\n isLoggingEnabled: globalThis.process.env.NODE_ENV === 'development',\n} as const;\n\n/**\n * Default frontend configuration for feature flags.\n * Optimized for client-side usage with reasonable defaults.\n */\nexport const DEFAULT_FRONTEND_CONFIG = {\n provider: 'memory',\n isCacheEnabled: true,\n cacheTtl: 300, // 5 minutes\n refreshInterval: 0, // No auto-refresh for frontend\n shouldFallbackToDefaults: true,\n isLoggingEnabled: false, // Disabled in production\n} as const;\n","export const DOMAINS = {\n app: 'https://plyaz.co.uk',\n api: globalThis.process.env.NEXT_PUBLIC_API_URL!,\n} as const;\n","export const DEFAULT_LOCALE = 'en';\nexport const SUPPORTED_LOCALES = ['en', 'es', 'pt'] as const;\nexport const TIMEZONE = 'Europe/London';","import { DEFAULT_LOCALE, SUPPORTED_LOCALES } from './constants';\n\nexport const LANDING_PAGE_APP = {\n NAME: 'Plyaz',\n VERSION: '1.0.0',\n DEFAULT_LOCALE,\n SUPPORTED_LOCALES,\n} as const;\n\nexport const WEB_APP = {\n NAME: 'Plyaz The App',\n VERSION: '1.0.0',\n DEFAULT_LOCALE,\n SUPPORTED_LOCALES,\n} as const;\n","export const SECURITY = {\n BLOCKED_REGIONS: ['KP', 'SY', 'IR', 'CU', 'SD', 'SO', 'UA-CR', 'UA-DP', 'UA-LU'],\n} as const;\n","export const API_CONFIG = {} as const;\n\nexport const CACHE_CONFIG = {\n // Cache TTL in seconds\n ttl: {\n short: 300, // 5 minutes\n medium: 1800, // 30 minutes\n long: 3600, // 1 hour\n extended: 86400, // 24 hours\n },\n\n // Cache keys\n keys: {\n user: 'user:',\n nft: 'nft:',\n blockchain: 'blockchain:',\n auth: 'auth:',\n },\n\n // Redis configuration\n redis: {\n url: globalThis.process.env.REDIS_URL!,\n keyPrefix: 'plyaz:',\n maxRetriesPerRequest: 3,\n // eslint-disable-next-line @typescript-eslint/naming-convention\n lazyConnect: true,\n },\n} as const;\n\nexport const WEBHOOK_CONFIG = {} as const;\n","/**\n * String Manipulation Constants\n *\n * Constants used for string generation, manipulation,\n * and UUID-related operations.\n *\n * @module utils/string/constants\n */\n\n/**\n * String generation and manipulation constants\n */\nexport const STRING_CONSTANTS = {\n /**\n * Starting position for random string extraction\n */\n RANDOM_STRING_START: 2,\n\n /**\n * Length of random string segment\n */\n RANDOM_STRING_LENGTH: 9,\n\n /**\n * Multiplier for UUID random value generation\n */\n UUID_RANDOM_MULTIPLIER: 16,\n\n /**\n * Hexadecimal mask for UUID generation\n */\n UUID_HEX_MASK: 0x3,\n\n /**\n * OR value for UUID hexadecimal operations\n */\n UUID_HEX_OR_VALUE: 0x8,\n} as const;\n\n/**\n * Type for string constant values\n */\nexport type StringConstant = (typeof STRING_CONSTANTS)[keyof typeof STRING_CONSTANTS];\n","/**\n * Collection and Array Constants\n *\n * Constants for array operations, pagination,\n * and collection manipulation.\n *\n * @module utils/collection/constants\n */\n\n/**\n * Array and collection operation constants\n */\nexport const COLLECTION_CONSTANTS = {\n /**\n * Center point for array splitting (50%)\n */\n ARRAY_SPLIT_CENTER: 0.5,\n\n /**\n * Default page size for pagination\n */\n DEFAULT_PAGE_SIZE: 10,\n\n /**\n * Default maximum number of retries for operations\n */\n DEFAULT_MAX_RETRIES: 3,\n\n /**\n * Constant for three items (used in various contexts)\n */\n THREE_ITEMS: 3,\n} as const;\n\n/**\n * Type for collection constant values\n */\nexport type CollectionConstant = (typeof COLLECTION_CONSTANTS)[keyof typeof COLLECTION_CONSTANTS];\n","/**\n * HTTP Status Code Constants\n *\n * Common HTTP status codes used throughout the application.\n * Based on RFC 9110 (HTTP Semantics) and common usage patterns.\n *\n * @module http/constants\n */\n\n/**\n * Standard HTTP status codes\n */\nexport const HTTP_STATUS = {\n /**\n * 200 OK - The request succeeded\n */\n OK: 200,\n\n /**\n * 201 Created - The request succeeded and a new resource was created\n */\n CREATED: 201,\n\n /**\n * 302 Found - The resource resides temporarily under a different URI\n */\n FOUND: 302,\n\n /**\n * 307 Temporary Redirect - The request should be repeated with another URI\n */\n TEMPORARY_REDIRECT: 307,\n\n /**\n * 400 Bad Request - The server cannot process the request due to client error\n */\n BAD_REQUEST: 400,\n\n /**\n * 401 Unauthorized - Authentication is required and has failed or not been provided\n */\n UNAUTHORIZED: 401,\n\n /**\n * 403 Forbidden - The server understood the request but refuses to authorize it\n */\n FORBIDDEN: 403,\n\n /**\n * 404 Not Found - The server cannot find the requested resource\n */\n NOT_FOUND: 404,\n\n /**\n * 500 Internal Server Error - The server encountered an unexpected condition\n */\n INTERNAL_SERVER_ERROR: 500,\n} as const;\n\n/**\n * Type for HTTP status codes\n */\nexport type HttpStatusCode = (typeof HTTP_STATUS)[keyof typeof HTTP_STATUS];\n","/**\n * Time-related Constants\n *\n * Common time values and durations used throughout the application\n * for timeouts, delays, caching, and other time-based operations.\n *\n * @module time/constants\n */\n\n/**\n * Time conversion and duration constants\n */\nexport const TIME_CONSTANTS = {\n /**\n * Number of milliseconds in one second\n */\n MILLISECONDS_PER_SECOND: 1000,\n\n /**\n * Number of seconds in one minute\n */\n SECONDS_PER_MINUTE: 60,\n\n /**\n * Number of minutes in one hour\n */\n MINUTES_PER_HOUR: 60,\n\n /**\n * Number of hours in one day\n */\n HOURS_PER_DAY: 24,\n\n /**\n * Default timeout duration in milliseconds (5 seconds)\n */\n DEFAULT_TIMEOUT: 5000,\n\n /**\n * Default retry delay in milliseconds (100ms)\n */\n DEFAULT_RETRY_DELAY: 100,\n\n /**\n * Default number of retry attempts\n */\n DEFAULT_RETRY_ATTEMPTS: 3,\n\n /**\n * Default debounce delay in milliseconds (50ms)\n */\n DEFAULT_DEBOUNCE_DELAY: 50,\n\n /**\n * Default animation frame duration in milliseconds (~60fps)\n */\n DEFAULT_ANIMATION_FRAME: 16.67,\n\n /**\n * Default cache time-to-live in seconds (5 minutes)\n */\n DEFAULT_CACHE_TTL: 300,\n\n /**\n * Default port number for servers\n */\n DEFAULT_PORT: 3000,\n\n /**\n * WebSocket abnormal closure code\n */\n WEBSOCKET_CLOSE_ABNORMAL: 1006,\n\n /**\n * WebSocket retry delay in milliseconds (500ms)\n */\n WEBSOCKET_RETRY_DELAY: 500,\n} as const;\n\n/**\n * Type for time constant values\n */\nexport type TimeConstant = (typeof TIME_CONSTANTS)[keyof typeof TIME_CONSTANTS];\n","/**\n * Mathematical Constants\n *\n * Common mathematical values, number system bases, and calculation constants\n * used throughout the application for various computations.\n *\n * @module math/constants\n */\n\n/**\n * Number system base constants\n */\nexport const NUMBER_SYSTEM = {\n /**\n * Base 2 - Binary number system\n */\n BINARY_BASE: 2,\n\n /**\n * Base 8 - Octal number system\n */\n OCTAL_BASE: 8,\n\n /**\n * Base 10 - Decimal number system\n */\n DECIMAL_BASE: 10,\n\n /**\n * Base 16 - Hexadecimal number system\n */\n HEX_BASE: 16,\n\n /**\n * Base 36 - Alphanumeric number system (0-9, a-z)\n */\n BASE36: 36,\n} as const;\n\n/**\n * Mathematical and percentage constants\n */\nexport const MATH_CONSTANTS = {\n /**\n * Half value (50%)\n */\n HALF: 0.5,\n\n /**\n * One tenth (10%)\n */\n TENTH: 0.1,\n\n /**\n * One twentieth (5%)\n */\n TWENTIETH: 0.05,\n\n /**\n * 95th percentile\n */\n PERCENT_95: 0.95,\n\n /**\n * 99th percentile\n */\n PERCENT_99: 0.99,\n\n /**\n * Threshold for quadratic algorithm detection\n */\n QUADRATIC_THRESHOLD: 1.5,\n\n /**\n * Threshold for exponential algorithm detection\n */\n EXPONENTIAL_THRESHOLD: 3,\n\n /**\n * Multiplier for variance calculations\n */\n VARIANCE_MULTIPLIER: 4,\n\n /**\n * Offset for variance calculations\n */\n VARIANCE_OFFSET: 2,\n} as const;\n\n/**\n * Type for number system values\n */\nexport type NumberSystemBase = (typeof NUMBER_SYSTEM)[keyof typeof NUMBER_SYSTEM];\n\n/**\n * Type for math constant values\n */\nexport type MathConstant = (typeof MATH_CONSTANTS)[keyof typeof MATH_CONSTANTS];\n","/**\n * Performance Module\n *\n * Performance monitoring and benchmarking constants used for\n * measuring application performance, detecting memory leaks,\n * and configuring performance tests.\n *\n * @module performance\n */\n\n/**\n * Performance measurement constants\n */\nexport const PERFORMANCE_CONSTANTS = {\n /**\n * Threshold for detecting memory leaks (10% growth)\n */\n MEMORY_LEAK_THRESHOLD: 0.1,\n\n /**\n * Default number of benchmark runs for performance testing\n */\n DEFAULT_BENCHMARK_RUNS: 100,\n\n /**\n * Default number of warmup runs before benchmarking\n */\n DEFAULT_WARMUP_RUNS: 10,\n} as const;\n\n/**\n * Type for performance constant values\n */\nexport type PerformanceConstant =\n (typeof PERFORMANCE_CONSTANTS)[keyof typeof PERFORMANCE_CONSTANTS];\n","/**\n * Network-related Constants\n *\n * Constants for network operations including IP addresses,\n * byte ranges, and process identifiers.\n *\n * @module network/constants\n */\n\n/**\n * Network and connection constants\n */\nexport const NETWORK_CONSTANTS = {\n /**\n * Minimum value for an IPv4 octet (excluding 0 for first octet)\n */\n IPV4_OCTET_MIN: 1,\n\n /**\n * Maximum value for an IPv4 octet\n */\n IPV4_OCTET_MAX: 255,\n\n /**\n * Number of octets in an IPv4 address\n */\n IPV4_OCTET_COUNT: 4,\n\n /**\n * Maximum value for a random byte (256 exclusive)\n */\n RANDOM_BYTE_MAX: 256,\n\n /**\n * Default maximum process ID for testing\n */\n DEFAULT_PROCESS_ID_MAX: 10000,\n} as const;\n\n/**\n * Type for network constant values\n */\nexport type NetworkConstant = (typeof NETWORK_CONSTANTS)[keyof typeof NETWORK_CONSTANTS];\n","/**\n * Display and Character Constants\n *\n * Constants for display formatting, charting,\n * and character code operations.\n *\n * @module display/constants\n */\n\n/**\n * Display and chart formatting constants\n */\nexport const DISPLAY_CONSTANTS = {\n /**\n * Maximum length for chart bar display\n */\n CHART_BAR_MAX_LENGTH: 40,\n\n /**\n * Length of chart separator lines\n */\n CHART_SEPARATOR_LENGTH: 60,\n\n /**\n * Number of decimal places for display precision\n */\n DECIMAL_PRECISION: 3,\n} as const;\n\n/**\n * Character code constants\n */\nexport const CHAR_CODES = {\n /**\n * ASCII code for lowercase 'a'\n */\n LOWERCASE_A: 97,\n\n /**\n * Number of letters in the alphabet\n */\n ALPHABET_SIZE: 26,\n\n /**\n * ASCII code for space character\n */\n SPACE: 32,\n} as const;\n\n/**\n * Type for display constant values\n */\nexport type DisplayConstant = (typeof DISPLAY_CONSTANTS)[keyof typeof DISPLAY_CONSTANTS];\n\n/**\n * Type for character code values\n */\nexport type CharCode = (typeof CHAR_CODES)[keyof typeof CHAR_CODES];\n"]}
@@ -444,5 +444,5 @@ var CHAR_CODES = {
444
444
  };
445
445
 
446
446
  export { ALCHEMY_CONFIG, API_CONFIG, CACHE_CONFIG, CHAR_CODES, COLLECTION_CONSTANTS, CONTRACTS, DEFAULT_BACKEND_CONFIG, DEFAULT_FRONTEND_CONFIG, DEFAULT_LOCALE, DEV_SUPPORTED_CHAINS, DISPLAY_CONSTANTS, DOMAINS, FEATURES, HTTP_STATUS, LANDING_PAGE_APP, MATH_CONSTANTS, NETWORK_CONSTANTS, NUMBER_SYSTEM, OAUTH_PROVIDERS, PERFORMANCE_CONSTANTS, PROD_SUPPORTED_CHAINS, SECURITY, STAGING_SUPPORTED_CHAINS, STRING_CONSTANTS, SUPPORTED_LOCALES, TIMEZONE, TIME_CONSTANTS, WEBHOOK_CONFIG, WEB_APP, isDev, isProd, isServer, isTest };
447
- //# sourceMappingURL=index.js.map
448
- //# sourceMappingURL=index.js.map
447
+ //# sourceMappingURL=index.mjs.map
448
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/env.ts","../src/providers/alchemy.ts","../src/providers/oauth.ts","../src/chains/contracts.ts","../src/chains/supportedChains.ts","../src/features.ts","../src/domains.ts","../src/constants.ts","../src/app.ts","../src/security.ts","../src/api.ts","../src/utils/string/constants.ts","../src/utils/collection/constants.ts","../src/http/constants.ts","../src/time/constants.ts","../src/math/constants.ts","../src/performance/index.ts","../src/network/constants.ts","../src/display/constants.ts"],"names":[],"mappings":";;;;;AAAO,IAAM,QAAA,GAAW,OAAO,MAAA,KAAW;AACnC,IAAM,KAAA,GAAQ,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa;AAClD,IAAM,MAAA,GAAS,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa;AACnD,IAAM,MAAA,GAAS,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa;;;ACHnD,IAAM,cAAA,GAAiB;AAAA,EAC5B,MAAA,EAAQ,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,uBAAA;AAAA,EAC/B,OAAA,EAAS;AAAA,IACP,QAAA,EAAU,CAAA,qCAAA,EAAwC,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAAA,IAChG,OAAA,EAAS,CAAA,yCAAA,EAA4C,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAAA,IACnG,QAAA,EAAU,CAAA,qCAAA,EAAwC,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAAA,IAChG,QAAA,EAAU,CAAA,qCAAA,EAAwC,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAAA,IAChG,IAAA,EAAM,CAAA,sCAAA,EAAyC,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAAA,IAC7F,MAAA,EAAQ,CAAA,wCAAA,EAA2C,UA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AAA,EAKhB,gBAAA,EAAkB,CAAA;AAAA;AAAA;AAAA;AAAA,EAKlB,eAAA,EAAiB,GAAA;AAAA;AAAA;AAAA;AAAA,EAKjB,sBAAA,EAAwB;AAC1B;;;ACzBO,IAAM,iBAAA,GAAoB;AAAA;AAAA;AAAA;AAAA,EAI/B,oBAAA,EAAsB,EAAA;AAAA;AAAA;AAAA;AAAA,EAKtB,sBAAA,EAAwB,EAAA;AAAA;AAAA;AAAA;AAAA,EAKxB,iBAAA,EAAmB;AACrB;AAKO,IAAM,UAAA,GAAa;AAAA;AAAA;AAAA;AAAA,EAIxB,WAAA,EAAa,EAAA;AAAA;AAAA;AAAA;AAAA,EAKb,aAAA,EAAe,EAAA;AAAA;AAAA;AAAA;AAAA,EAKf,KAAA,EAAO;AACT","file":"index.mjs","sourcesContent":["export const isServer = typeof window === 'undefined';\nexport const isDev = globalThis.process.env.NODE_ENV === 'development';\nexport const isProd = globalThis.process.env.NODE_ENV === 'production';\nexport const isTest = globalThis.process.env.NODE_ENV === 'test';\n","export const ALCHEMY_CONFIG = {\n apiKey: globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY!,\n rpcUrls: {\n ethereum: `https://eth-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n polygon: `https://polygon-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n arbitrum: `https://arb-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n optimism: `https://opt-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n base: `https://base-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n solana: `https://solana-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n },\n};\n","export const OAUTH_PROVIDERS = {\n google: {\n clientId: globalThis.process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID!,\n clientSecret: globalThis.process.env.GOOGLE_CLIENT_SECRET!,\n redirectUri: globalThis.process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URI!,\n scopes: ['openid', 'profile', 'email'],\n },\n discord: {\n clientId: globalThis.process.env.NEXT_PUBLIC_DISCORD_CLIENT_ID!,\n clientSecret: globalThis.process.env.DISCORD_CLIENT_SECRET!,\n redirectUri: globalThis.process.env.NEXT_PUBLIC_DISCORD_REDIRECT_URI!,\n scopes: ['identify', 'email'],\n },\n facebook: {\n clientId: globalThis.process.env.NEXT_PUBLIC_FACEBOOK_CLIENT_ID!,\n clientSecret: globalThis.process.env.FACEBOOK_CLIENT_SECRET!,\n redirectUri: globalThis.process.env.NEXT_PUBLIC_FACEBOOK_REDIRECT_URI!,\n scopes: ['public_profile', 'email'],\n },\n} as const;\n","export const CONTRACTS = {\n nftManager: {\n read: {\n arbitrum: '',\n },\n write: {\n arbitrum: '',\n },\n },\n tokenManager: {\n read: {\n arbitrum: '',\n },\n write: {\n arbitrum: '',\n },\n },\n} as const;\n","import { mainnet, sepolia } from 'viem/chains';\n\nexport const PROD_SUPPORTED_CHAINS = {\n // Mainnets\n ethereum: mainnet,\n} as const;\n\nexport const STAGING_SUPPORTED_CHAINS = {\n // Mainnets\n ethereum: mainnet,\n // Testnets\n sepolia,\n} as const;\n\nexport const DEV_SUPPORTED_CHAINS = {\n // Testnets\n sepolia,\n} as const;\n","import { isDev } from './env';\n\nexport const FEATURES = {\n // Authentication & Auth Providers\n // eslint-disable-next-line @typescript-eslint/naming-convention\n AUTH_GOOGLE: true,\n // eslint-disable-next-line @typescript-eslint/naming-convention\n AUTH_DISCORD: isDev,\n AUTH_FACEBOOK: false,\n AUTH_GITHUB: true,\n} as const satisfies Record<string, boolean>;\n\n/**\n * Default backend configuration for feature flags.\n * Optimized for server-side usage with reasonable defaults.\n */\nexport const DEFAULT_BACKEND_CONFIG = {\n provider: 'database',\n isCacheEnabled: true,\n cacheTtl: 300, // 5 minutes\n refreshInterval: 60, // 1 minute auto-refresh\n shouldFallbackToDefaults: true,\n isLoggingEnabled: globalThis.process.env.NODE_ENV === 'development',\n} as const;\n\n/**\n * Default frontend configuration for feature flags.\n * Optimized for client-side usage with reasonable defaults.\n */\nexport const DEFAULT_FRONTEND_CONFIG = {\n provider: 'memory',\n isCacheEnabled: true,\n cacheTtl: 300, // 5 minutes\n refreshInterval: 0, // No auto-refresh for frontend\n shouldFallbackToDefaults: true,\n isLoggingEnabled: false, // Disabled in production\n} as const;\n","export const DOMAINS = {\n app: 'https://plyaz.co.uk',\n api: globalThis.process.env.NEXT_PUBLIC_API_URL!,\n} as const;\n","export const DEFAULT_LOCALE = 'en';\nexport const SUPPORTED_LOCALES = ['en', 'es', 'pt'] as const;\nexport const TIMEZONE = 'Europe/London';","import { DEFAULT_LOCALE, SUPPORTED_LOCALES } from './constants';\n\nexport const LANDING_PAGE_APP = {\n NAME: 'Plyaz',\n VERSION: '1.0.0',\n DEFAULT_LOCALE,\n SUPPORTED_LOCALES,\n} as const;\n\nexport const WEB_APP = {\n NAME: 'Plyaz The App',\n VERSION: '1.0.0',\n DEFAULT_LOCALE,\n SUPPORTED_LOCALES,\n} as const;\n","export const SECURITY = {\n BLOCKED_REGIONS: ['KP', 'SY', 'IR', 'CU', 'SD', 'SO', 'UA-CR', 'UA-DP', 'UA-LU'],\n} as const;\n","export const API_CONFIG = {} as const;\n\nexport const CACHE_CONFIG = {\n // Cache TTL in seconds\n ttl: {\n short: 300, // 5 minutes\n medium: 1800, // 30 minutes\n long: 3600, // 1 hour\n extended: 86400, // 24 hours\n },\n\n // Cache keys\n keys: {\n user: 'user:',\n nft: 'nft:',\n blockchain: 'blockchain:',\n auth: 'auth:',\n },\n\n // Redis configuration\n redis: {\n url: globalThis.process.env.REDIS_URL!,\n keyPrefix: 'plyaz:',\n maxRetriesPerRequest: 3,\n // eslint-disable-next-line @typescript-eslint/naming-convention\n lazyConnect: true,\n },\n} as const;\n\nexport const WEBHOOK_CONFIG = {} as const;\n","/**\n * String Manipulation Constants\n *\n * Constants used for string generation, manipulation,\n * and UUID-related operations.\n *\n * @module utils/string/constants\n */\n\n/**\n * String generation and manipulation constants\n */\nexport const STRING_CONSTANTS = {\n /**\n * Starting position for random string extraction\n */\n RANDOM_STRING_START: 2,\n\n /**\n * Length of random string segment\n */\n RANDOM_STRING_LENGTH: 9,\n\n /**\n * Multiplier for UUID random value generation\n */\n UUID_RANDOM_MULTIPLIER: 16,\n\n /**\n * Hexadecimal mask for UUID generation\n */\n UUID_HEX_MASK: 0x3,\n\n /**\n * OR value for UUID hexadecimal operations\n */\n UUID_HEX_OR_VALUE: 0x8,\n} as const;\n\n/**\n * Type for string constant values\n */\nexport type StringConstant = (typeof STRING_CONSTANTS)[keyof typeof STRING_CONSTANTS];\n","/**\n * Collection and Array Constants\n *\n * Constants for array operations, pagination,\n * and collection manipulation.\n *\n * @module utils/collection/constants\n */\n\n/**\n * Array and collection operation constants\n */\nexport const COLLECTION_CONSTANTS = {\n /**\n * Center point for array splitting (50%)\n */\n ARRAY_SPLIT_CENTER: 0.5,\n\n /**\n * Default page size for pagination\n */\n DEFAULT_PAGE_SIZE: 10,\n\n /**\n * Default maximum number of retries for operations\n */\n DEFAULT_MAX_RETRIES: 3,\n\n /**\n * Constant for three items (used in various contexts)\n */\n THREE_ITEMS: 3,\n} as const;\n\n/**\n * Type for collection constant values\n */\nexport type CollectionConstant = (typeof COLLECTION_CONSTANTS)[keyof typeof COLLECTION_CONSTANTS];\n","/**\n * HTTP Status Code Constants\n *\n * Common HTTP status codes used throughout the application.\n * Based on RFC 9110 (HTTP Semantics) and common usage patterns.\n *\n * @module http/constants\n */\n\n/**\n * Standard HTTP status codes\n */\nexport const HTTP_STATUS = {\n /**\n * 200 OK - The request succeeded\n */\n OK: 200,\n\n /**\n * 201 Created - The request succeeded and a new resource was created\n */\n CREATED: 201,\n\n /**\n * 302 Found - The resource resides temporarily under a different URI\n */\n FOUND: 302,\n\n /**\n * 307 Temporary Redirect - The request should be repeated with another URI\n */\n TEMPORARY_REDIRECT: 307,\n\n /**\n * 400 Bad Request - The server cannot process the request due to client error\n */\n BAD_REQUEST: 400,\n\n /**\n * 401 Unauthorized - Authentication is required and has failed or not been provided\n */\n UNAUTHORIZED: 401,\n\n /**\n * 403 Forbidden - The server understood the request but refuses to authorize it\n */\n FORBIDDEN: 403,\n\n /**\n * 404 Not Found - The server cannot find the requested resource\n */\n NOT_FOUND: 404,\n\n /**\n * 500 Internal Server Error - The server encountered an unexpected condition\n */\n INTERNAL_SERVER_ERROR: 500,\n} as const;\n\n/**\n * Type for HTTP status codes\n */\nexport type HttpStatusCode = (typeof HTTP_STATUS)[keyof typeof HTTP_STATUS];\n","/**\n * Time-related Constants\n *\n * Common time values and durations used throughout the application\n * for timeouts, delays, caching, and other time-based operations.\n *\n * @module time/constants\n */\n\n/**\n * Time conversion and duration constants\n */\nexport const TIME_CONSTANTS = {\n /**\n * Number of milliseconds in one second\n */\n MILLISECONDS_PER_SECOND: 1000,\n\n /**\n * Number of seconds in one minute\n */\n SECONDS_PER_MINUTE: 60,\n\n /**\n * Number of minutes in one hour\n */\n MINUTES_PER_HOUR: 60,\n\n /**\n * Number of hours in one day\n */\n HOURS_PER_DAY: 24,\n\n /**\n * Default timeout duration in milliseconds (5 seconds)\n */\n DEFAULT_TIMEOUT: 5000,\n\n /**\n * Default retry delay in milliseconds (100ms)\n */\n DEFAULT_RETRY_DELAY: 100,\n\n /**\n * Default number of retry attempts\n */\n DEFAULT_RETRY_ATTEMPTS: 3,\n\n /**\n * Default debounce delay in milliseconds (50ms)\n */\n DEFAULT_DEBOUNCE_DELAY: 50,\n\n /**\n * Default animation frame duration in milliseconds (~60fps)\n */\n DEFAULT_ANIMATION_FRAME: 16.67,\n\n /**\n * Default cache time-to-live in seconds (5 minutes)\n */\n DEFAULT_CACHE_TTL: 300,\n\n /**\n * Default port number for servers\n */\n DEFAULT_PORT: 3000,\n\n /**\n * WebSocket abnormal closure code\n */\n WEBSOCKET_CLOSE_ABNORMAL: 1006,\n\n /**\n * WebSocket retry delay in milliseconds (500ms)\n */\n WEBSOCKET_RETRY_DELAY: 500,\n} as const;\n\n/**\n * Type for time constant values\n */\nexport type TimeConstant = (typeof TIME_CONSTANTS)[keyof typeof TIME_CONSTANTS];\n","/**\n * Mathematical Constants\n *\n * Common mathematical values, number system bases, and calculation constants\n * used throughout the application for various computations.\n *\n * @module math/constants\n */\n\n/**\n * Number system base constants\n */\nexport const NUMBER_SYSTEM = {\n /**\n * Base 2 - Binary number system\n */\n BINARY_BASE: 2,\n\n /**\n * Base 8 - Octal number system\n */\n OCTAL_BASE: 8,\n\n /**\n * Base 10 - Decimal number system\n */\n DECIMAL_BASE: 10,\n\n /**\n * Base 16 - Hexadecimal number system\n */\n HEX_BASE: 16,\n\n /**\n * Base 36 - Alphanumeric number system (0-9, a-z)\n */\n BASE36: 36,\n} as const;\n\n/**\n * Mathematical and percentage constants\n */\nexport const MATH_CONSTANTS = {\n /**\n * Half value (50%)\n */\n HALF: 0.5,\n\n /**\n * One tenth (10%)\n */\n TENTH: 0.1,\n\n /**\n * One twentieth (5%)\n */\n TWENTIETH: 0.05,\n\n /**\n * 95th percentile\n */\n PERCENT_95: 0.95,\n\n /**\n * 99th percentile\n */\n PERCENT_99: 0.99,\n\n /**\n * Threshold for quadratic algorithm detection\n */\n QUADRATIC_THRESHOLD: 1.5,\n\n /**\n * Threshold for exponential algorithm detection\n */\n EXPONENTIAL_THRESHOLD: 3,\n\n /**\n * Multiplier for variance calculations\n */\n VARIANCE_MULTIPLIER: 4,\n\n /**\n * Offset for variance calculations\n */\n VARIANCE_OFFSET: 2,\n} as const;\n\n/**\n * Type for number system values\n */\nexport type NumberSystemBase = (typeof NUMBER_SYSTEM)[keyof typeof NUMBER_SYSTEM];\n\n/**\n * Type for math constant values\n */\nexport type MathConstant = (typeof MATH_CONSTANTS)[keyof typeof MATH_CONSTANTS];\n","/**\n * Performance Module\n *\n * Performance monitoring and benchmarking constants used for\n * measuring application performance, detecting memory leaks,\n * and configuring performance tests.\n *\n * @module performance\n */\n\n/**\n * Performance measurement constants\n */\nexport const PERFORMANCE_CONSTANTS = {\n /**\n * Threshold for detecting memory leaks (10% growth)\n */\n MEMORY_LEAK_THRESHOLD: 0.1,\n\n /**\n * Default number of benchmark runs for performance testing\n */\n DEFAULT_BENCHMARK_RUNS: 100,\n\n /**\n * Default number of warmup runs before benchmarking\n */\n DEFAULT_WARMUP_RUNS: 10,\n} as const;\n\n/**\n * Type for performance constant values\n */\nexport type PerformanceConstant =\n (typeof PERFORMANCE_CONSTANTS)[keyof typeof PERFORMANCE_CONSTANTS];\n","/**\n * Network-related Constants\n *\n * Constants for network operations including IP addresses,\n * byte ranges, and process identifiers.\n *\n * @module network/constants\n */\n\n/**\n * Network and connection constants\n */\nexport const NETWORK_CONSTANTS = {\n /**\n * Minimum value for an IPv4 octet (excluding 0 for first octet)\n */\n IPV4_OCTET_MIN: 1,\n\n /**\n * Maximum value for an IPv4 octet\n */\n IPV4_OCTET_MAX: 255,\n\n /**\n * Number of octets in an IPv4 address\n */\n IPV4_OCTET_COUNT: 4,\n\n /**\n * Maximum value for a random byte (256 exclusive)\n */\n RANDOM_BYTE_MAX: 256,\n\n /**\n * Default maximum process ID for testing\n */\n DEFAULT_PROCESS_ID_MAX: 10000,\n} as const;\n\n/**\n * Type for network constant values\n */\nexport type NetworkConstant = (typeof NETWORK_CONSTANTS)[keyof typeof NETWORK_CONSTANTS];\n","/**\n * Display and Character Constants\n *\n * Constants for display formatting, charting,\n * and character code operations.\n *\n * @module display/constants\n */\n\n/**\n * Display and chart formatting constants\n */\nexport const DISPLAY_CONSTANTS = {\n /**\n * Maximum length for chart bar display\n */\n CHART_BAR_MAX_LENGTH: 40,\n\n /**\n * Length of chart separator lines\n */\n CHART_SEPARATOR_LENGTH: 60,\n\n /**\n * Number of decimal places for display precision\n */\n DECIMAL_PRECISION: 3,\n} as const;\n\n/**\n * Character code constants\n */\nexport const CHAR_CODES = {\n /**\n * ASCII code for lowercase 'a'\n */\n LOWERCASE_A: 97,\n\n /**\n * Number of letters in the alphabet\n */\n ALPHABET_SIZE: 26,\n\n /**\n * ASCII code for space character\n */\n SPACE: 32,\n} as const;\n\n/**\n * Type for display constant values\n */\nexport type DisplayConstant = (typeof DISPLAY_CONSTANTS)[keyof typeof DISPLAY_CONSTANTS];\n\n/**\n * Type for character code values\n */\nexport type CharCode = (typeof CHAR_CODES)[keyof typeof CHAR_CODES];\n"]}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@plyaz/config",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "author": "Redeemer Pace",
5
5
  "license": "ISC",
6
6
  "description": "Provides shared configs and constants for @playz ecosystem.",
7
- "main": "./dist/index.js",
7
+ "main": "./dist/index.cjs",
8
8
  "module": "./dist/index.mjs",
9
9
  "types": "./dist/index.d.ts",
10
10
  "type": "module",
@@ -12,7 +12,7 @@
12
12
  ".": {
13
13
  "types": "./dist/index.d.ts",
14
14
  "import": "./dist/index.mjs",
15
- "require": "./dist/index.js",
15
+ "require": "./dist/index.cjs",
16
16
  "default": "./dist/index.mjs"
17
17
  },
18
18
  "./translations": {
@@ -35,15 +35,17 @@
35
35
  "@eslint/eslintrc": "^3.2.0",
36
36
  "@eslint/js": "^9.15.0",
37
37
  "@eslint/markdown": "^6.5.0",
38
- "@nestjs/common": "^11.1.3",
39
38
  "@next/eslint-plugin-next": "^15.0.3",
40
- "@plyaz/devtools": "^1.5.5",
41
- "@plyaz/types": "^1.1.2",
42
- "@types/node": "^20.0.0",
39
+ "@plyaz/devtools": "^1.6.11",
40
+ "@plyaz/types": "^1.3.5",
41
+ "@types/node": "^22.14.0",
43
42
  "@types/react": "^19.1.8",
43
+ "@types/react-dom": "^19.1.6",
44
44
  "@typescript-eslint/eslint-plugin": "^8.15.0",
45
45
  "@typescript-eslint/parser": "^8.15.0",
46
+ "@vitest/coverage-istanbul": "3.2.4",
46
47
  "@vitest/coverage-v8": "^3.1.3",
48
+ "chalk": "^5.4.1",
47
49
  "eslint": "^9.29.0",
48
50
  "eslint-config-next": "^15.3.3",
49
51
  "eslint-config-prettier": "^9.1.0",
@@ -79,6 +81,7 @@
79
81
  "prettier": "^3.5.3",
80
82
  "standard-version": "^9.5.0",
81
83
  "tailwindcss": "^4.1.8",
84
+ "ts-morph": "^26.0.0",
82
85
  "tsup": "8.5.0",
83
86
  "typescript": "^5",
84
87
  "typescript-eslint": "^8.34.0",
@@ -99,11 +102,11 @@
99
102
  "scripts": {
100
103
  "build": "pnpm clean && pnpm build:js && pnpm build:types",
101
104
  "build:js": "tsup",
102
- "build:types": "tsc src/index.ts --emitDeclarationOnly --outDir dist --declaration --skipLibCheck",
105
+ "build:types": "tsc -p tsconfig.build.json",
103
106
  "build:watch": "tsup --watch",
104
107
  "dev": "tsup --watch",
105
- "lint": "eslint ./src",
106
- "lint:fix": "eslint ./src --fix",
108
+ "lint": "eslint ./src ./tests",
109
+ "lint:fix": "eslint ./src ./tests --fix",
107
110
  "format": "prettier --write './**/*.{ts,tsx,js,jsx}'",
108
111
  "format:check": "prettier --check './**/*.{ts,tsx,js,jsx}'",
109
112
  "type:check": "tsc --noEmit",
@@ -119,6 +122,10 @@
119
122
  "audit:critical": "pnpm audit --audit-level critical",
120
123
  "audit:fix": "pnpm audit --fix",
121
124
  "audit:enhanced": "npx audit-ci --moderate",
122
- "security:check": "pnpm audit:moderate && npx audit-ci --moderate"
125
+ "security:check": "pnpm audit:moderate && npx audit-ci --moderate",
126
+ "remove:unused": "pnpm remove:unused:fnc && pnpm remove:unused:interfaces",
127
+ "remove:unused:interfaces": "npx tsx check_types.ts --remove --report=./internal-reports/unused-types-report.md",
128
+ "remove:unused:fnc": "npx tsx check_fnc.ts --report=./internal-reports/unused-declarations.md",
129
+ "check:dependencies": "npx tsx check_dependencies_versions.ts --report=./internal-reports/dependency-report.md"
123
130
  }
124
131
  }
package/dist/api.d.ts DELETED
@@ -1,22 +0,0 @@
1
- export declare const API_CONFIG: {};
2
- export declare const CACHE_CONFIG: {
3
- readonly ttl: {
4
- readonly short: 300;
5
- readonly medium: 1800;
6
- readonly long: 3600;
7
- readonly extended: 86400;
8
- };
9
- readonly keys: {
10
- readonly user: "user:";
11
- readonly nft: "nft:";
12
- readonly blockchain: "blockchain:";
13
- readonly auth: "auth:";
14
- };
15
- readonly redis: {
16
- readonly url: string;
17
- readonly keyPrefix: "plyaz:";
18
- readonly maxRetriesPerRequest: 3;
19
- readonly lazyConnect: true;
20
- };
21
- };
22
- export declare const WEBHOOK_CONFIG: {};
package/dist/app.d.ts DELETED
@@ -1,12 +0,0 @@
1
- export declare const LANDING_PAGE_APP: {
2
- readonly NAME: "Plyaz";
3
- readonly VERSION: "1.0.0";
4
- readonly DEFAULT_LOCALE: "en";
5
- readonly SUPPORTED_LOCALES: readonly ["en", "es", "pt"];
6
- };
7
- export declare const WEB_APP: {
8
- readonly NAME: "Plyaz The App";
9
- readonly VERSION: "1.0.0";
10
- readonly DEFAULT_LOCALE: "en";
11
- readonly SUPPORTED_LOCALES: readonly ["en", "es", "pt"];
12
- };
@@ -1,18 +0,0 @@
1
- export declare const CONTRACTS: {
2
- readonly nftManager: {
3
- readonly read: {
4
- readonly arbitrum: "";
5
- };
6
- readonly write: {
7
- readonly arbitrum: "";
8
- };
9
- };
10
- readonly tokenManager: {
11
- readonly read: {
12
- readonly arbitrum: "";
13
- };
14
- readonly write: {
15
- readonly arbitrum: "";
16
- };
17
- };
18
- };
@@ -1,2 +0,0 @@
1
- export * from './contracts';
2
- export * from './supportedChains';
@@ -1,178 +0,0 @@
1
- export declare const PROD_SUPPORTED_CHAINS: {
2
- readonly ethereum: {
3
- blockExplorers: {
4
- readonly default: {
5
- readonly name: "Etherscan";
6
- readonly url: "https://etherscan.io";
7
- readonly apiUrl: "https://api.etherscan.io/api";
8
- };
9
- };
10
- blockTime?: number | undefined | undefined;
11
- contracts: {
12
- readonly ensRegistry: {
13
- readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
14
- };
15
- readonly ensUniversalResolver: {
16
- readonly address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67";
17
- readonly blockCreated: 19258213;
18
- };
19
- readonly multicall3: {
20
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
21
- readonly blockCreated: 14353601;
22
- };
23
- };
24
- ensTlds?: readonly string[] | undefined;
25
- id: 1;
26
- name: "Ethereum";
27
- nativeCurrency: {
28
- readonly name: "Ether";
29
- readonly symbol: "ETH";
30
- readonly decimals: 18;
31
- };
32
- experimental_preconfirmationTime?: number | undefined | undefined;
33
- rpcUrls: {
34
- readonly default: {
35
- readonly http: readonly ["https://eth.merkle.io"];
36
- };
37
- };
38
- sourceId?: number | undefined | undefined;
39
- testnet?: boolean | undefined | undefined;
40
- custom?: Record<string, unknown> | undefined;
41
- fees?: import("viem").ChainFees<undefined> | undefined;
42
- formatters?: undefined;
43
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
44
- };
45
- };
46
- export declare const STAGING_SUPPORTED_CHAINS: {
47
- readonly ethereum: {
48
- blockExplorers: {
49
- readonly default: {
50
- readonly name: "Etherscan";
51
- readonly url: "https://etherscan.io";
52
- readonly apiUrl: "https://api.etherscan.io/api";
53
- };
54
- };
55
- blockTime?: number | undefined | undefined;
56
- contracts: {
57
- readonly ensRegistry: {
58
- readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
59
- };
60
- readonly ensUniversalResolver: {
61
- readonly address: "0xce01f8eee7E479C928F8919abD53E553a36CeF67";
62
- readonly blockCreated: 19258213;
63
- };
64
- readonly multicall3: {
65
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
66
- readonly blockCreated: 14353601;
67
- };
68
- };
69
- ensTlds?: readonly string[] | undefined;
70
- id: 1;
71
- name: "Ethereum";
72
- nativeCurrency: {
73
- readonly name: "Ether";
74
- readonly symbol: "ETH";
75
- readonly decimals: 18;
76
- };
77
- experimental_preconfirmationTime?: number | undefined | undefined;
78
- rpcUrls: {
79
- readonly default: {
80
- readonly http: readonly ["https://eth.merkle.io"];
81
- };
82
- };
83
- sourceId?: number | undefined | undefined;
84
- testnet?: boolean | undefined | undefined;
85
- custom?: Record<string, unknown> | undefined;
86
- fees?: import("viem").ChainFees<undefined> | undefined;
87
- formatters?: undefined;
88
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
89
- };
90
- readonly sepolia: {
91
- blockExplorers: {
92
- readonly default: {
93
- readonly name: "Etherscan";
94
- readonly url: "https://sepolia.etherscan.io";
95
- readonly apiUrl: "https://api-sepolia.etherscan.io/api";
96
- };
97
- };
98
- blockTime?: number | undefined | undefined;
99
- contracts: {
100
- readonly multicall3: {
101
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
102
- readonly blockCreated: 751532;
103
- };
104
- readonly ensRegistry: {
105
- readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
106
- };
107
- readonly ensUniversalResolver: {
108
- readonly address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC";
109
- readonly blockCreated: 5317080;
110
- };
111
- };
112
- ensTlds?: readonly string[] | undefined;
113
- id: 11155111;
114
- name: "Sepolia";
115
- nativeCurrency: {
116
- readonly name: "Sepolia Ether";
117
- readonly symbol: "ETH";
118
- readonly decimals: 18;
119
- };
120
- experimental_preconfirmationTime?: number | undefined | undefined;
121
- rpcUrls: {
122
- readonly default: {
123
- readonly http: readonly ["https://sepolia.drpc.org"];
124
- };
125
- };
126
- sourceId?: number | undefined | undefined;
127
- testnet: true;
128
- custom?: Record<string, unknown> | undefined;
129
- fees?: import("viem").ChainFees<undefined> | undefined;
130
- formatters?: undefined;
131
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
132
- };
133
- };
134
- export declare const DEV_SUPPORTED_CHAINS: {
135
- readonly sepolia: {
136
- blockExplorers: {
137
- readonly default: {
138
- readonly name: "Etherscan";
139
- readonly url: "https://sepolia.etherscan.io";
140
- readonly apiUrl: "https://api-sepolia.etherscan.io/api";
141
- };
142
- };
143
- blockTime?: number | undefined | undefined;
144
- contracts: {
145
- readonly multicall3: {
146
- readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
147
- readonly blockCreated: 751532;
148
- };
149
- readonly ensRegistry: {
150
- readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
151
- };
152
- readonly ensUniversalResolver: {
153
- readonly address: "0xc8Af999e38273D658BE1b921b88A9Ddf005769cC";
154
- readonly blockCreated: 5317080;
155
- };
156
- };
157
- ensTlds?: readonly string[] | undefined;
158
- id: 11155111;
159
- name: "Sepolia";
160
- nativeCurrency: {
161
- readonly name: "Sepolia Ether";
162
- readonly symbol: "ETH";
163
- readonly decimals: 18;
164
- };
165
- experimental_preconfirmationTime?: number | undefined | undefined;
166
- rpcUrls: {
167
- readonly default: {
168
- readonly http: readonly ["https://sepolia.drpc.org"];
169
- };
170
- };
171
- sourceId?: number | undefined | undefined;
172
- testnet: true;
173
- custom?: Record<string, unknown> | undefined;
174
- fees?: import("viem").ChainFees<undefined> | undefined;
175
- formatters?: undefined;
176
- serializers?: import("viem").ChainSerializers<undefined, import("viem").TransactionSerializable> | undefined;
177
- };
178
- };
@@ -1,3 +0,0 @@
1
- export declare const DEFAULT_LOCALE = "en";
2
- export declare const SUPPORTED_LOCALES: readonly ["en", "es", "pt"];
3
- export declare const TIMEZONE = "Europe/London";
@@ -1,50 +0,0 @@
1
- /**
2
- * Display and Character Constants
3
- *
4
- * Constants for display formatting, charting,
5
- * and character code operations.
6
- *
7
- * @module display/constants
8
- */
9
- /**
10
- * Display and chart formatting constants
11
- */
12
- export declare const DISPLAY_CONSTANTS: {
13
- /**
14
- * Maximum length for chart bar display
15
- */
16
- readonly CHART_BAR_MAX_LENGTH: 40;
17
- /**
18
- * Length of chart separator lines
19
- */
20
- readonly CHART_SEPARATOR_LENGTH: 60;
21
- /**
22
- * Number of decimal places for display precision
23
- */
24
- readonly DECIMAL_PRECISION: 3;
25
- };
26
- /**
27
- * Character code constants
28
- */
29
- export declare const CHAR_CODES: {
30
- /**
31
- * ASCII code for lowercase 'a'
32
- */
33
- readonly LOWERCASE_A: 97;
34
- /**
35
- * Number of letters in the alphabet
36
- */
37
- readonly ALPHABET_SIZE: 26;
38
- /**
39
- * ASCII code for space character
40
- */
41
- readonly SPACE: 32;
42
- };
43
- /**
44
- * Type for display constant values
45
- */
46
- export type DisplayConstant = (typeof DISPLAY_CONSTANTS)[keyof typeof DISPLAY_CONSTANTS];
47
- /**
48
- * Type for character code values
49
- */
50
- export type CharCode = (typeof CHAR_CODES)[keyof typeof CHAR_CODES];
@@ -1,6 +0,0 @@
1
- /**
2
- * Display Module Exports
3
- *
4
- * @module display
5
- */
6
- export * from './constants';
package/dist/domains.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export declare const DOMAINS: {
2
- readonly app: "https://plyaz.co.uk";
3
- readonly api: string;
4
- };
package/dist/env.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export declare const isServer: boolean;
2
- export declare const isDev: boolean;
3
- export declare const isProd: boolean;
4
- export declare const isTest: boolean;
@@ -1,30 +0,0 @@
1
- export declare const FEATURES: {
2
- readonly AUTH_GOOGLE: true;
3
- readonly AUTH_DISCORD: boolean;
4
- readonly AUTH_FACEBOOK: false;
5
- readonly AUTH_GITHUB: true;
6
- };
7
- /**
8
- * Default backend configuration for feature flags.
9
- * Optimized for server-side usage with reasonable defaults.
10
- */
11
- export declare const DEFAULT_BACKEND_CONFIG: {
12
- readonly provider: "database";
13
- readonly isCacheEnabled: true;
14
- readonly cacheTtl: 300;
15
- readonly refreshInterval: 60;
16
- readonly shouldFallbackToDefaults: true;
17
- readonly isLoggingEnabled: boolean;
18
- };
19
- /**
20
- * Default frontend configuration for feature flags.
21
- * Optimized for client-side usage with reasonable defaults.
22
- */
23
- export declare const DEFAULT_FRONTEND_CONFIG: {
24
- readonly provider: "memory";
25
- readonly isCacheEnabled: true;
26
- readonly cacheTtl: 300;
27
- readonly refreshInterval: 0;
28
- readonly shouldFallbackToDefaults: true;
29
- readonly isLoggingEnabled: false;
30
- };
@@ -1,53 +0,0 @@
1
- /**
2
- * HTTP Status Code Constants
3
- *
4
- * Common HTTP status codes used throughout the application.
5
- * Based on RFC 9110 (HTTP Semantics) and common usage patterns.
6
- *
7
- * @module http/constants
8
- */
9
- /**
10
- * Standard HTTP status codes
11
- */
12
- export declare const HTTP_STATUS: {
13
- /**
14
- * 200 OK - The request succeeded
15
- */
16
- readonly OK: 200;
17
- /**
18
- * 201 Created - The request succeeded and a new resource was created
19
- */
20
- readonly CREATED: 201;
21
- /**
22
- * 302 Found - The resource resides temporarily under a different URI
23
- */
24
- readonly FOUND: 302;
25
- /**
26
- * 307 Temporary Redirect - The request should be repeated with another URI
27
- */
28
- readonly TEMPORARY_REDIRECT: 307;
29
- /**
30
- * 400 Bad Request - The server cannot process the request due to client error
31
- */
32
- readonly BAD_REQUEST: 400;
33
- /**
34
- * 401 Unauthorized - Authentication is required and has failed or not been provided
35
- */
36
- readonly UNAUTHORIZED: 401;
37
- /**
38
- * 403 Forbidden - The server understood the request but refuses to authorize it
39
- */
40
- readonly FORBIDDEN: 403;
41
- /**
42
- * 404 Not Found - The server cannot find the requested resource
43
- */
44
- readonly NOT_FOUND: 404;
45
- /**
46
- * 500 Internal Server Error - The server encountered an unexpected condition
47
- */
48
- readonly INTERNAL_SERVER_ERROR: 500;
49
- };
50
- /**
51
- * Type for HTTP status codes
52
- */
53
- export type HttpStatusCode = (typeof HTTP_STATUS)[keyof typeof HTTP_STATUS];
@@ -1,6 +0,0 @@
1
- /**
2
- * HTTP Module Exports
3
- *
4
- * @module http
5
- */
6
- export * from './constants';
package/dist/index.d.ts DELETED
@@ -1,16 +0,0 @@
1
- export * from './env';
2
- export * from './providers';
3
- export * from './chains';
4
- export * from './features';
5
- export * from './domains';
6
- export * from './app';
7
- export * from './security';
8
- export * from './constants';
9
- export * from './api';
10
- export * from './utils';
11
- export * from './http';
12
- export * from './time';
13
- export * from './math';
14
- export * from './performance';
15
- export * from './network';
16
- export * from './display';
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/env.ts","../src/providers/alchemy.ts","../src/providers/oauth.ts","../src/chains/contracts.ts","../src/chains/supportedChains.ts","../src/features.ts","../src/domains.ts","../src/constants.ts","../src/app.ts","../src/security.ts","../src/api.ts","../src/utils/string/constants.ts","../src/utils/collection/constants.ts","../src/http/constants.ts","../src/time/constants.ts","../src/math/constants.ts","../src/performance/index.ts","../src/network/constants.ts","../src/display/constants.ts"],"names":[],"mappings":";;;;;AAAO,IAAM,QAAA,GAAW,OAAO,MAAA,KAAW;AACnC,IAAM,KAAA,GAAQ,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa;AAClD,IAAM,MAAA,GAAS,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa;AACnD,IAAM,MAAA,GAAS,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,QAAA,KAAa;;;ACHnD,IAAM,cAAA,GAAiB;AAAA,EAC5B,MAAA,EAAQ,UAAA,CAAW,OAAA,CAAQ,GAAA,CAAI,uBAAA;AAAA,EAC/B,OAAA,EAAS;AAAA,IACP,QAAA,EAAU,CAAA,qCAAA,EAAwC,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAAA,IAChG,OAAA,EAAS,CAAA,yCAAA,EAA4C,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAAA,IACnG,QAAA,EAAU,CAAA,qCAAA,EAAwC,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAAA,IAChG,QAAA,EAAU,CAAA,qCAAA,EAAwC,UAAA,CAAW,OAAA,CAAQ,IAAI,uBAAuB,CAAA,CAAA;AAA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,IAAM,iBAAA,GAAoB;AAAA;AAAA;AAAA;AAAA,EAI/B,cAAA,EAAgB,CAAA;AAAA;AAAA;AAAA;AAAA,EAKhB,cAAA,EAAgB,GAAA;AAAA;AAAA;AAAA;AAAA,EAKhB,gBAAA,EAAkB,CAAA;AAAA;AAAA;AAAA;AAAA,EAKlB,eAAA,EAAiB,GAAA;AAAA;AAAA;AAAA;AAAA,EAKjB,sBAAA,EAAwB;AAC1B;;;ACzBO,IAAM,iBAAA,GAAoB;AAAA;AAAA;AAAA;AAAA,EAI/B,oBAAA,EAAsB,EAAA;AAAA;AAAA;AAAA;AAAA,EAKtB,sBAAA,EAAwB,EAAA;AAAA;AAAA;AAAA;AAAA,EAKxB,iBAAA,EAAmB;AACrB;AAKO,IAAM,UAAA,GAAa;AAAA;AAAA;AAAA;AAAA,EAIxB,WAAA,EAAa,EAAA;AAAA;AAAA;AAAA;AAAA,EAKb,aAAA,EAAe,EAAA;AAAA;AAAA;AAAA;AAAA,EAKf,KAAA,EAAO;AACT","file":"index.js","sourcesContent":["export const isServer = typeof window === 'undefined';\nexport const isDev = globalThis.process.env.NODE_ENV === 'development';\nexport const isProd = globalThis.process.env.NODE_ENV === 'production';\nexport const isTest = globalThis.process.env.NODE_ENV === 'test';\n","export const ALCHEMY_CONFIG = {\n apiKey: globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY!,\n rpcUrls: {\n ethereum: `https://eth-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n polygon: `https://polygon-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n arbitrum: `https://arb-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n optimism: `https://opt-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n base: `https://base-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n solana: `https://solana-mainnet.g.alchemy.com/v2/${globalThis.process.env.NEXT_PUBLIC_ALCHEMY_KEY}`,\n },\n};\n","export const OAUTH_PROVIDERS = {\n google: {\n clientId: globalThis.process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID!,\n clientSecret: globalThis.process.env.GOOGLE_CLIENT_SECRET!,\n redirectUri: globalThis.process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URI!,\n scopes: ['openid', 'profile', 'email'],\n },\n discord: {\n clientId: globalThis.process.env.NEXT_PUBLIC_DISCORD_CLIENT_ID!,\n clientSecret: globalThis.process.env.DISCORD_CLIENT_SECRET!,\n redirectUri: globalThis.process.env.NEXT_PUBLIC_DISCORD_REDIRECT_URI!,\n scopes: ['identify', 'email'],\n },\n facebook: {\n clientId: globalThis.process.env.NEXT_PUBLIC_FACEBOOK_CLIENT_ID!,\n clientSecret: globalThis.process.env.FACEBOOK_CLIENT_SECRET!,\n redirectUri: globalThis.process.env.NEXT_PUBLIC_FACEBOOK_REDIRECT_URI!,\n scopes: ['public_profile', 'email'],\n },\n} as const;\n","export const CONTRACTS = {\n nftManager: {\n read: {\n arbitrum: '',\n },\n write: {\n arbitrum: '',\n },\n },\n tokenManager: {\n read: {\n arbitrum: '',\n },\n write: {\n arbitrum: '',\n },\n },\n} as const;\n","import { mainnet, sepolia } from 'viem/chains';\n\nexport const PROD_SUPPORTED_CHAINS = {\n // Mainnets\n ethereum: mainnet,\n} as const;\n\nexport const STAGING_SUPPORTED_CHAINS = {\n // Mainnets\n ethereum: mainnet,\n // Testnets\n sepolia,\n} as const;\n\nexport const DEV_SUPPORTED_CHAINS = {\n // Testnets\n sepolia,\n} as const;\n","import { isDev } from './env';\n\nexport const FEATURES = {\n // Authentication & Auth Providers\n // eslint-disable-next-line @typescript-eslint/naming-convention\n AUTH_GOOGLE: true,\n // eslint-disable-next-line @typescript-eslint/naming-convention\n AUTH_DISCORD: isDev,\n AUTH_FACEBOOK: false,\n AUTH_GITHUB: true,\n} as const satisfies Record<string, boolean>;\n\n/**\n * Default backend configuration for feature flags.\n * Optimized for server-side usage with reasonable defaults.\n */\nexport const DEFAULT_BACKEND_CONFIG = {\n provider: 'database',\n isCacheEnabled: true,\n cacheTtl: 300, // 5 minutes\n refreshInterval: 60, // 1 minute auto-refresh\n shouldFallbackToDefaults: true,\n isLoggingEnabled: globalThis.process.env.NODE_ENV === 'development',\n} as const;\n\n/**\n * Default frontend configuration for feature flags.\n * Optimized for client-side usage with reasonable defaults.\n */\nexport const DEFAULT_FRONTEND_CONFIG = {\n provider: 'memory',\n isCacheEnabled: true,\n cacheTtl: 300, // 5 minutes\n refreshInterval: 0, // No auto-refresh for frontend\n shouldFallbackToDefaults: true,\n isLoggingEnabled: false, // Disabled in production\n} as const;\n","export const DOMAINS = {\n app: 'https://plyaz.co.uk',\n api: globalThis.process.env.NEXT_PUBLIC_API_URL!,\n} as const;\n","export const DEFAULT_LOCALE = 'en';\nexport const SUPPORTED_LOCALES = ['en', 'es', 'pt'] as const;\nexport const TIMEZONE = 'Europe/London';","import { DEFAULT_LOCALE, SUPPORTED_LOCALES } from './constants';\n\nexport const LANDING_PAGE_APP = {\n NAME: 'Plyaz',\n VERSION: '1.0.0',\n DEFAULT_LOCALE,\n SUPPORTED_LOCALES,\n} as const;\n\nexport const WEB_APP = {\n NAME: 'Plyaz The App',\n VERSION: '1.0.0',\n DEFAULT_LOCALE,\n SUPPORTED_LOCALES,\n} as const;\n","export const SECURITY = {\n BLOCKED_REGIONS: ['KP', 'SY', 'IR', 'CU', 'SD', 'SO', 'UA-CR', 'UA-DP', 'UA-LU'],\n} as const;\n","export const API_CONFIG = {} as const;\n\nexport const CACHE_CONFIG = {\n // Cache TTL in seconds\n ttl: {\n short: 300, // 5 minutes\n medium: 1800, // 30 minutes\n long: 3600, // 1 hour\n extended: 86400, // 24 hours\n },\n\n // Cache keys\n keys: {\n user: 'user:',\n nft: 'nft:',\n blockchain: 'blockchain:',\n auth: 'auth:',\n },\n\n // Redis configuration\n redis: {\n url: globalThis.process.env.REDIS_URL!,\n keyPrefix: 'plyaz:',\n maxRetriesPerRequest: 3,\n // eslint-disable-next-line @typescript-eslint/naming-convention\n lazyConnect: true,\n },\n} as const;\n\nexport const WEBHOOK_CONFIG = {} as const;\n","/**\n * String Manipulation Constants\n *\n * Constants used for string generation, manipulation,\n * and UUID-related operations.\n *\n * @module utils/string/constants\n */\n\n/**\n * String generation and manipulation constants\n */\nexport const STRING_CONSTANTS = {\n /**\n * Starting position for random string extraction\n */\n RANDOM_STRING_START: 2,\n\n /**\n * Length of random string segment\n */\n RANDOM_STRING_LENGTH: 9,\n\n /**\n * Multiplier for UUID random value generation\n */\n UUID_RANDOM_MULTIPLIER: 16,\n\n /**\n * Hexadecimal mask for UUID generation\n */\n UUID_HEX_MASK: 0x3,\n\n /**\n * OR value for UUID hexadecimal operations\n */\n UUID_HEX_OR_VALUE: 0x8,\n} as const;\n\n/**\n * Type for string constant values\n */\nexport type StringConstant = (typeof STRING_CONSTANTS)[keyof typeof STRING_CONSTANTS];\n","/**\n * Collection and Array Constants\n *\n * Constants for array operations, pagination,\n * and collection manipulation.\n *\n * @module utils/collection/constants\n */\n\n/**\n * Array and collection operation constants\n */\nexport const COLLECTION_CONSTANTS = {\n /**\n * Center point for array splitting (50%)\n */\n ARRAY_SPLIT_CENTER: 0.5,\n\n /**\n * Default page size for pagination\n */\n DEFAULT_PAGE_SIZE: 10,\n\n /**\n * Default maximum number of retries for operations\n */\n DEFAULT_MAX_RETRIES: 3,\n\n /**\n * Constant for three items (used in various contexts)\n */\n THREE_ITEMS: 3,\n} as const;\n\n/**\n * Type for collection constant values\n */\nexport type CollectionConstant = (typeof COLLECTION_CONSTANTS)[keyof typeof COLLECTION_CONSTANTS];\n","/**\n * HTTP Status Code Constants\n *\n * Common HTTP status codes used throughout the application.\n * Based on RFC 9110 (HTTP Semantics) and common usage patterns.\n *\n * @module http/constants\n */\n\n/**\n * Standard HTTP status codes\n */\nexport const HTTP_STATUS = {\n /**\n * 200 OK - The request succeeded\n */\n OK: 200,\n\n /**\n * 201 Created - The request succeeded and a new resource was created\n */\n CREATED: 201,\n\n /**\n * 302 Found - The resource resides temporarily under a different URI\n */\n FOUND: 302,\n\n /**\n * 307 Temporary Redirect - The request should be repeated with another URI\n */\n TEMPORARY_REDIRECT: 307,\n\n /**\n * 400 Bad Request - The server cannot process the request due to client error\n */\n BAD_REQUEST: 400,\n\n /**\n * 401 Unauthorized - Authentication is required and has failed or not been provided\n */\n UNAUTHORIZED: 401,\n\n /**\n * 403 Forbidden - The server understood the request but refuses to authorize it\n */\n FORBIDDEN: 403,\n\n /**\n * 404 Not Found - The server cannot find the requested resource\n */\n NOT_FOUND: 404,\n\n /**\n * 500 Internal Server Error - The server encountered an unexpected condition\n */\n INTERNAL_SERVER_ERROR: 500,\n} as const;\n\n/**\n * Type for HTTP status codes\n */\nexport type HttpStatusCode = (typeof HTTP_STATUS)[keyof typeof HTTP_STATUS];\n","/**\n * Time-related Constants\n *\n * Common time values and durations used throughout the application\n * for timeouts, delays, caching, and other time-based operations.\n *\n * @module time/constants\n */\n\n/**\n * Time conversion and duration constants\n */\nexport const TIME_CONSTANTS = {\n /**\n * Number of milliseconds in one second\n */\n MILLISECONDS_PER_SECOND: 1000,\n\n /**\n * Number of seconds in one minute\n */\n SECONDS_PER_MINUTE: 60,\n\n /**\n * Number of minutes in one hour\n */\n MINUTES_PER_HOUR: 60,\n\n /**\n * Number of hours in one day\n */\n HOURS_PER_DAY: 24,\n\n /**\n * Default timeout duration in milliseconds (5 seconds)\n */\n DEFAULT_TIMEOUT: 5000,\n\n /**\n * Default retry delay in milliseconds (100ms)\n */\n DEFAULT_RETRY_DELAY: 100,\n\n /**\n * Default number of retry attempts\n */\n DEFAULT_RETRY_ATTEMPTS: 3,\n\n /**\n * Default debounce delay in milliseconds (50ms)\n */\n DEFAULT_DEBOUNCE_DELAY: 50,\n\n /**\n * Default animation frame duration in milliseconds (~60fps)\n */\n DEFAULT_ANIMATION_FRAME: 16.67,\n\n /**\n * Default cache time-to-live in seconds (5 minutes)\n */\n DEFAULT_CACHE_TTL: 300,\n\n /**\n * Default port number for servers\n */\n DEFAULT_PORT: 3000,\n\n /**\n * WebSocket abnormal closure code\n */\n WEBSOCKET_CLOSE_ABNORMAL: 1006,\n\n /**\n * WebSocket retry delay in milliseconds (500ms)\n */\n WEBSOCKET_RETRY_DELAY: 500,\n} as const;\n\n/**\n * Type for time constant values\n */\nexport type TimeConstant = (typeof TIME_CONSTANTS)[keyof typeof TIME_CONSTANTS];\n","/**\n * Mathematical Constants\n *\n * Common mathematical values, number system bases, and calculation constants\n * used throughout the application for various computations.\n *\n * @module math/constants\n */\n\n/**\n * Number system base constants\n */\nexport const NUMBER_SYSTEM = {\n /**\n * Base 2 - Binary number system\n */\n BINARY_BASE: 2,\n\n /**\n * Base 8 - Octal number system\n */\n OCTAL_BASE: 8,\n\n /**\n * Base 10 - Decimal number system\n */\n DECIMAL_BASE: 10,\n\n /**\n * Base 16 - Hexadecimal number system\n */\n HEX_BASE: 16,\n\n /**\n * Base 36 - Alphanumeric number system (0-9, a-z)\n */\n BASE36: 36,\n} as const;\n\n/**\n * Mathematical and percentage constants\n */\nexport const MATH_CONSTANTS = {\n /**\n * Half value (50%)\n */\n HALF: 0.5,\n\n /**\n * One tenth (10%)\n */\n TENTH: 0.1,\n\n /**\n * One twentieth (5%)\n */\n TWENTIETH: 0.05,\n\n /**\n * 95th percentile\n */\n PERCENT_95: 0.95,\n\n /**\n * 99th percentile\n */\n PERCENT_99: 0.99,\n\n /**\n * Threshold for quadratic algorithm detection\n */\n QUADRATIC_THRESHOLD: 1.5,\n\n /**\n * Threshold for exponential algorithm detection\n */\n EXPONENTIAL_THRESHOLD: 3,\n\n /**\n * Multiplier for variance calculations\n */\n VARIANCE_MULTIPLIER: 4,\n\n /**\n * Offset for variance calculations\n */\n VARIANCE_OFFSET: 2,\n} as const;\n\n/**\n * Type for number system values\n */\nexport type NumberSystemBase = (typeof NUMBER_SYSTEM)[keyof typeof NUMBER_SYSTEM];\n\n/**\n * Type for math constant values\n */\nexport type MathConstant = (typeof MATH_CONSTANTS)[keyof typeof MATH_CONSTANTS];\n","/**\n * Performance Module\n *\n * Performance monitoring and benchmarking constants used for\n * measuring application performance, detecting memory leaks,\n * and configuring performance tests.\n *\n * @module performance\n */\n\n/**\n * Performance measurement constants\n */\nexport const PERFORMANCE_CONSTANTS = {\n /**\n * Threshold for detecting memory leaks (10% growth)\n */\n MEMORY_LEAK_THRESHOLD: 0.1,\n\n /**\n * Default number of benchmark runs for performance testing\n */\n DEFAULT_BENCHMARK_RUNS: 100,\n\n /**\n * Default number of warmup runs before benchmarking\n */\n DEFAULT_WARMUP_RUNS: 10,\n} as const;\n\n/**\n * Type for performance constant values\n */\nexport type PerformanceConstant =\n (typeof PERFORMANCE_CONSTANTS)[keyof typeof PERFORMANCE_CONSTANTS];\n","/**\n * Network-related Constants\n *\n * Constants for network operations including IP addresses,\n * byte ranges, and process identifiers.\n *\n * @module network/constants\n */\n\n/**\n * Network and connection constants\n */\nexport const NETWORK_CONSTANTS = {\n /**\n * Minimum value for an IPv4 octet (excluding 0 for first octet)\n */\n IPV4_OCTET_MIN: 1,\n\n /**\n * Maximum value for an IPv4 octet\n */\n IPV4_OCTET_MAX: 255,\n\n /**\n * Number of octets in an IPv4 address\n */\n IPV4_OCTET_COUNT: 4,\n\n /**\n * Maximum value for a random byte (256 exclusive)\n */\n RANDOM_BYTE_MAX: 256,\n\n /**\n * Default maximum process ID for testing\n */\n DEFAULT_PROCESS_ID_MAX: 10000,\n} as const;\n\n/**\n * Type for network constant values\n */\nexport type NetworkConstant = (typeof NETWORK_CONSTANTS)[keyof typeof NETWORK_CONSTANTS];\n","/**\n * Display and Character Constants\n *\n * Constants for display formatting, charting,\n * and character code operations.\n *\n * @module display/constants\n */\n\n/**\n * Display and chart formatting constants\n */\nexport const DISPLAY_CONSTANTS = {\n /**\n * Maximum length for chart bar display\n */\n CHART_BAR_MAX_LENGTH: 40,\n\n /**\n * Length of chart separator lines\n */\n CHART_SEPARATOR_LENGTH: 60,\n\n /**\n * Number of decimal places for display precision\n */\n DECIMAL_PRECISION: 3,\n} as const;\n\n/**\n * Character code constants\n */\nexport const CHAR_CODES = {\n /**\n * ASCII code for lowercase 'a'\n */\n LOWERCASE_A: 97,\n\n /**\n * Number of letters in the alphabet\n */\n ALPHABET_SIZE: 26,\n\n /**\n * ASCII code for space character\n */\n SPACE: 32,\n} as const;\n\n/**\n * Type for display constant values\n */\nexport type DisplayConstant = (typeof DISPLAY_CONSTANTS)[keyof typeof DISPLAY_CONSTANTS];\n\n/**\n * Type for character code values\n */\nexport type CharCode = (typeof CHAR_CODES)[keyof typeof CHAR_CODES];\n"]}
@@ -1,82 +0,0 @@
1
- /**
2
- * Mathematical Constants
3
- *
4
- * Common mathematical values, number system bases, and calculation constants
5
- * used throughout the application for various computations.
6
- *
7
- * @module math/constants
8
- */
9
- /**
10
- * Number system base constants
11
- */
12
- export declare const NUMBER_SYSTEM: {
13
- /**
14
- * Base 2 - Binary number system
15
- */
16
- readonly BINARY_BASE: 2;
17
- /**
18
- * Base 8 - Octal number system
19
- */
20
- readonly OCTAL_BASE: 8;
21
- /**
22
- * Base 10 - Decimal number system
23
- */
24
- readonly DECIMAL_BASE: 10;
25
- /**
26
- * Base 16 - Hexadecimal number system
27
- */
28
- readonly HEX_BASE: 16;
29
- /**
30
- * Base 36 - Alphanumeric number system (0-9, a-z)
31
- */
32
- readonly BASE36: 36;
33
- };
34
- /**
35
- * Mathematical and percentage constants
36
- */
37
- export declare const MATH_CONSTANTS: {
38
- /**
39
- * Half value (50%)
40
- */
41
- readonly HALF: 0.5;
42
- /**
43
- * One tenth (10%)
44
- */
45
- readonly TENTH: 0.1;
46
- /**
47
- * One twentieth (5%)
48
- */
49
- readonly TWENTIETH: 0.05;
50
- /**
51
- * 95th percentile
52
- */
53
- readonly PERCENT_95: 0.95;
54
- /**
55
- * 99th percentile
56
- */
57
- readonly PERCENT_99: 0.99;
58
- /**
59
- * Threshold for quadratic algorithm detection
60
- */
61
- readonly QUADRATIC_THRESHOLD: 1.5;
62
- /**
63
- * Threshold for exponential algorithm detection
64
- */
65
- readonly EXPONENTIAL_THRESHOLD: 3;
66
- /**
67
- * Multiplier for variance calculations
68
- */
69
- readonly VARIANCE_MULTIPLIER: 4;
70
- /**
71
- * Offset for variance calculations
72
- */
73
- readonly VARIANCE_OFFSET: 2;
74
- };
75
- /**
76
- * Type for number system values
77
- */
78
- export type NumberSystemBase = (typeof NUMBER_SYSTEM)[keyof typeof NUMBER_SYSTEM];
79
- /**
80
- * Type for math constant values
81
- */
82
- export type MathConstant = (typeof MATH_CONSTANTS)[keyof typeof MATH_CONSTANTS];
@@ -1,6 +0,0 @@
1
- /**
2
- * Math Module Exports
3
- *
4
- * @module math
5
- */
6
- export * from './constants';
@@ -1,37 +0,0 @@
1
- /**
2
- * Network-related Constants
3
- *
4
- * Constants for network operations including IP addresses,
5
- * byte ranges, and process identifiers.
6
- *
7
- * @module network/constants
8
- */
9
- /**
10
- * Network and connection constants
11
- */
12
- export declare const NETWORK_CONSTANTS: {
13
- /**
14
- * Minimum value for an IPv4 octet (excluding 0 for first octet)
15
- */
16
- readonly IPV4_OCTET_MIN: 1;
17
- /**
18
- * Maximum value for an IPv4 octet
19
- */
20
- readonly IPV4_OCTET_MAX: 255;
21
- /**
22
- * Number of octets in an IPv4 address
23
- */
24
- readonly IPV4_OCTET_COUNT: 4;
25
- /**
26
- * Maximum value for a random byte (256 exclusive)
27
- */
28
- readonly RANDOM_BYTE_MAX: 256;
29
- /**
30
- * Default maximum process ID for testing
31
- */
32
- readonly DEFAULT_PROCESS_ID_MAX: 10000;
33
- };
34
- /**
35
- * Type for network constant values
36
- */
37
- export type NetworkConstant = (typeof NETWORK_CONSTANTS)[keyof typeof NETWORK_CONSTANTS];
@@ -1,6 +0,0 @@
1
- /**
2
- * Network Module Exports
3
- *
4
- * @module network
5
- */
6
- export * from './constants';
@@ -1,30 +0,0 @@
1
- /**
2
- * Performance Module
3
- *
4
- * Performance monitoring and benchmarking constants used for
5
- * measuring application performance, detecting memory leaks,
6
- * and configuring performance tests.
7
- *
8
- * @module performance
9
- */
10
- /**
11
- * Performance measurement constants
12
- */
13
- export declare const PERFORMANCE_CONSTANTS: {
14
- /**
15
- * Threshold for detecting memory leaks (10% growth)
16
- */
17
- readonly MEMORY_LEAK_THRESHOLD: 0.1;
18
- /**
19
- * Default number of benchmark runs for performance testing
20
- */
21
- readonly DEFAULT_BENCHMARK_RUNS: 100;
22
- /**
23
- * Default number of warmup runs before benchmarking
24
- */
25
- readonly DEFAULT_WARMUP_RUNS: 10;
26
- };
27
- /**
28
- * Type for performance constant values
29
- */
30
- export type PerformanceConstant = (typeof PERFORMANCE_CONSTANTS)[keyof typeof PERFORMANCE_CONSTANTS];
@@ -1,11 +0,0 @@
1
- export declare const ALCHEMY_CONFIG: {
2
- apiKey: string;
3
- rpcUrls: {
4
- ethereum: string;
5
- polygon: string;
6
- arbitrum: string;
7
- optimism: string;
8
- base: string;
9
- solana: string;
10
- };
11
- };
@@ -1,2 +0,0 @@
1
- export * from './alchemy';
2
- export * from './oauth';
@@ -1,20 +0,0 @@
1
- export declare const OAUTH_PROVIDERS: {
2
- readonly google: {
3
- readonly clientId: string;
4
- readonly clientSecret: string;
5
- readonly redirectUri: string;
6
- readonly scopes: readonly ["openid", "profile", "email"];
7
- };
8
- readonly discord: {
9
- readonly clientId: string;
10
- readonly clientSecret: string;
11
- readonly redirectUri: string;
12
- readonly scopes: readonly ["identify", "email"];
13
- };
14
- readonly facebook: {
15
- readonly clientId: string;
16
- readonly clientSecret: string;
17
- readonly redirectUri: string;
18
- readonly scopes: readonly ["public_profile", "email"];
19
- };
20
- };
@@ -1,3 +0,0 @@
1
- export declare const SECURITY: {
2
- readonly BLOCKED_REGIONS: readonly ["KP", "SY", "IR", "CU", "SD", "SO", "UA-CR", "UA-DP", "UA-LU"];
3
- };
@@ -1,69 +0,0 @@
1
- /**
2
- * Time-related Constants
3
- *
4
- * Common time values and durations used throughout the application
5
- * for timeouts, delays, caching, and other time-based operations.
6
- *
7
- * @module time/constants
8
- */
9
- /**
10
- * Time conversion and duration constants
11
- */
12
- export declare const TIME_CONSTANTS: {
13
- /**
14
- * Number of milliseconds in one second
15
- */
16
- readonly MILLISECONDS_PER_SECOND: 1000;
17
- /**
18
- * Number of seconds in one minute
19
- */
20
- readonly SECONDS_PER_MINUTE: 60;
21
- /**
22
- * Number of minutes in one hour
23
- */
24
- readonly MINUTES_PER_HOUR: 60;
25
- /**
26
- * Number of hours in one day
27
- */
28
- readonly HOURS_PER_DAY: 24;
29
- /**
30
- * Default timeout duration in milliseconds (5 seconds)
31
- */
32
- readonly DEFAULT_TIMEOUT: 5000;
33
- /**
34
- * Default retry delay in milliseconds (100ms)
35
- */
36
- readonly DEFAULT_RETRY_DELAY: 100;
37
- /**
38
- * Default number of retry attempts
39
- */
40
- readonly DEFAULT_RETRY_ATTEMPTS: 3;
41
- /**
42
- * Default debounce delay in milliseconds (50ms)
43
- */
44
- readonly DEFAULT_DEBOUNCE_DELAY: 50;
45
- /**
46
- * Default animation frame duration in milliseconds (~60fps)
47
- */
48
- readonly DEFAULT_ANIMATION_FRAME: 16.67;
49
- /**
50
- * Default cache time-to-live in seconds (5 minutes)
51
- */
52
- readonly DEFAULT_CACHE_TTL: 300;
53
- /**
54
- * Default port number for servers
55
- */
56
- readonly DEFAULT_PORT: 3000;
57
- /**
58
- * WebSocket abnormal closure code
59
- */
60
- readonly WEBSOCKET_CLOSE_ABNORMAL: 1006;
61
- /**
62
- * WebSocket retry delay in milliseconds (500ms)
63
- */
64
- readonly WEBSOCKET_RETRY_DELAY: 500;
65
- };
66
- /**
67
- * Type for time constant values
68
- */
69
- export type TimeConstant = (typeof TIME_CONSTANTS)[keyof typeof TIME_CONSTANTS];
@@ -1,6 +0,0 @@
1
- /**
2
- * Time Module Exports
3
- *
4
- * @module time
5
- */
6
- export * from './constants';
@@ -1,33 +0,0 @@
1
- /**
2
- * Collection and Array Constants
3
- *
4
- * Constants for array operations, pagination,
5
- * and collection manipulation.
6
- *
7
- * @module utils/collection/constants
8
- */
9
- /**
10
- * Array and collection operation constants
11
- */
12
- export declare const COLLECTION_CONSTANTS: {
13
- /**
14
- * Center point for array splitting (50%)
15
- */
16
- readonly ARRAY_SPLIT_CENTER: 0.5;
17
- /**
18
- * Default page size for pagination
19
- */
20
- readonly DEFAULT_PAGE_SIZE: 10;
21
- /**
22
- * Default maximum number of retries for operations
23
- */
24
- readonly DEFAULT_MAX_RETRIES: 3;
25
- /**
26
- * Constant for three items (used in various contexts)
27
- */
28
- readonly THREE_ITEMS: 3;
29
- };
30
- /**
31
- * Type for collection constant values
32
- */
33
- export type CollectionConstant = (typeof COLLECTION_CONSTANTS)[keyof typeof COLLECTION_CONSTANTS];
@@ -1,6 +0,0 @@
1
- /**
2
- * Collection Utils Module Exports
3
- *
4
- * @module utils/collection
5
- */
6
- export * from './constants';
@@ -1,11 +0,0 @@
1
- /**
2
- * Utilities - Main Export
3
- *
4
- * Exports all utility constants organized by category.
5
- * These utilities can be reused across different parts of the application.
6
- *
7
- * @fileoverview Main utilities export
8
- * @version 1.0.0
9
- */
10
- export * from './string';
11
- export * from './collection';
@@ -1,37 +0,0 @@
1
- /**
2
- * String Manipulation Constants
3
- *
4
- * Constants used for string generation, manipulation,
5
- * and UUID-related operations.
6
- *
7
- * @module utils/string/constants
8
- */
9
- /**
10
- * String generation and manipulation constants
11
- */
12
- export declare const STRING_CONSTANTS: {
13
- /**
14
- * Starting position for random string extraction
15
- */
16
- readonly RANDOM_STRING_START: 2;
17
- /**
18
- * Length of random string segment
19
- */
20
- readonly RANDOM_STRING_LENGTH: 9;
21
- /**
22
- * Multiplier for UUID random value generation
23
- */
24
- readonly UUID_RANDOM_MULTIPLIER: 16;
25
- /**
26
- * Hexadecimal mask for UUID generation
27
- */
28
- readonly UUID_HEX_MASK: 3;
29
- /**
30
- * OR value for UUID hexadecimal operations
31
- */
32
- readonly UUID_HEX_OR_VALUE: 8;
33
- };
34
- /**
35
- * Type for string constant values
36
- */
37
- export type StringConstant = (typeof STRING_CONSTANTS)[keyof typeof STRING_CONSTANTS];
@@ -1,6 +0,0 @@
1
- /**
2
- * String Utils Module Exports
3
- *
4
- * @module utils/string
5
- */
6
- export * from './constants';