Skip to content

Commit

Permalink
Merge pull request #119 from KOSASIH/deepsource-transform-01975af5
Browse files Browse the repository at this point in the history
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
KOSASIH authored May 10, 2024
2 parents ea2164d + 3327cac commit 41a1176
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions utils/constants.js
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

0 comments on commit 41a1176

Please sign in to comment.