-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from KOSASIH/deepsource-transform-01975af5
style: format code with Autopep8, Black, ClangFormat, dotnet-format, Go fmt, Gofumpt, Google Java Format, isort, Ktlint, PHP CS Fixer, Prettier, RuboCop, Ruff Formatter, Rustfmt, Scalafmt, StandardJS, StandardRB, swift-format and Yapf
- Loading branch information
Showing
1 changed file
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,32 @@ | ||
// utils/constants.js | ||
|
||
// API Endpoints | ||
export const API_BASE_URL = 'https://api.decentralizedbanking.com'; | ||
export const REGISTER_ENDPOINT = '/register'; | ||
export const LOGIN_ENDPOINT = '/login'; | ||
export const CREATE_IDENTITY_ENDPOINT = '/create-identity'; | ||
export const DEPOSIT_ENDPOINT = '/deposit'; | ||
export const WITHDRAW_ENDPOINT = '/withdraw'; | ||
export const CREATE_ESCROW_ENDPOINT = '/create-escrow'; | ||
export const RESOLVE_ESCROW_ENDPOINT = '/resolve-escrow'; | ||
export const API_BASE_URL = 'https://api.decentralizedbanking.com' | ||
export const REGISTER_ENDPOINT = '/register' | ||
export const LOGIN_ENDPOINT = '/login' | ||
export const CREATE_IDENTITY_ENDPOINT = '/create-identity' | ||
export const DEPOSIT_ENDPOINT = '/deposit' | ||
export const WITHDRAW_ENDPOINT = '/withdraw' | ||
export const CREATE_ESCROW_ENDPOINT = '/create-escrow' | ||
export const RESOLVE_ESCROW_ENDPOINT = '/resolve-escrow' | ||
|
||
// Web3 | ||
export const WEB3_PROVIDER_URL = 'https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID'; | ||
export const WEB3_PROVIDER_URL = | ||
'https://mainnet.infura.io/v3/YOUR_INFURA_PROJECT_ID' | ||
|
||
// Contract Addresses | ||
export const BANKING_CONTRACT_ADDRESS = 'CONTRACT_ADDRESS'; | ||
export const BANKING_CONTRACT_ADDRESS = 'CONTRACT_ADDRESS' | ||
|
||
// JWT | ||
export const JWT_SECRET_KEY = 'SECRET_KEY'; | ||
export const JWT_SECRET_KEY = 'SECRET_KEY' | ||
|
||
// Rate Limiting | ||
export const RATE_LIMIT_WINDOW_MS = 15 * 60 * 1000; // 15 minutes | ||
export const RATE_LIMIT_MAX = 100; // Limit each IP to 100 requests per windowMs | ||
export const RATE_LIMIT_WINDOW_MS = 15 * 60 * 1000 // 15 minutes | ||
export const RATE_LIMIT_MAX = 100 // Limit each IP to 100 requests per windowMs | ||
|
||
// Risk Management | ||
export const RISK_MANAGEMENT_THRESHOLD = 0.8; // Threshold for triggering risk management | ||
export const RISK_MANAGEMENT_THRESHOLD = 0.8 // Threshold for triggering risk management | ||
|
||
// Compliance and Regulatory Framework | ||
export const AML_REGEX = /^[A-Z0-9]+$/; // Regular expression for validating AML-compliant identifiers | ||
export const KYC_REGEX = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/; // Regular expression for validating KYC-compliant email addresses | ||
export const AML_REGEX = /^[A-Z0-9]+$/ // Regular expression for validating AML-compliant identifiers | ||
export const KYC_REGEX = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/ // Regular expression for validating KYC-compliant email addresses |