diff --git a/Clover-Api/index.ts b/Clover-Api/index.ts index 15c38b8..103a742 100644 --- a/Clover-Api/index.ts +++ b/Clover-Api/index.ts @@ -1,4 +1,7 @@ import { App } from './app'; + + + const app = new App(); app.start(); diff --git a/Clover-Api/src/lib/password.ts b/Clover-Api/src/lib/password.ts index e4a42f7..68105d9 100644 --- a/Clover-Api/src/lib/password.ts +++ b/Clover-Api/src/lib/password.ts @@ -14,6 +14,9 @@ export function hashPassword(password: string): { hash: string; salt: string } { + + + /** Constant-time verification of a plaintext password against a stored hash. */ export function verifyPassword( password: string, diff --git a/Clover-Api/src/routes/users.ts b/Clover-Api/src/routes/users.ts index 5657e33..5923c7d 100644 --- a/Clover-Api/src/routes/users.ts +++ b/Clover-Api/src/routes/users.ts @@ -13,6 +13,9 @@ usersRouter.get('/', (_req: Request, res: Response) => { + + + /** * Create a user. * Validates the request body with zod; on failure returns 400 with diff --git a/Clover-Api/src/store/users.ts b/Clover-Api/src/store/users.ts index a0a1682..47dcd4d 100644 --- a/Clover-Api/src/store/users.ts +++ b/Clover-Api/src/store/users.ts @@ -13,6 +13,10 @@ export interface PublicUser { + + + + interface StoredUser extends PublicUser { passwordHash: string; salt: string; diff --git a/Clover-Api/src/validators/user.ts b/Clover-Api/src/validators/user.ts index 6c62335..b5f92f8 100644 --- a/Clover-Api/src/validators/user.ts +++ b/Clover-Api/src/validators/user.ts @@ -30,4 +30,7 @@ export const createUserSchema = z.object({ .regex(/[0-9]/, 'Password must contain a number'), }); + + + export type CreateUserInput = z.infer; diff --git a/Clover-contract/onboarding-bridge/src/integration_tests.rs b/Clover-contract/onboarding-bridge/src/integration_tests.rs index da47919..36c09d0 100644 --- a/Clover-contract/onboarding-bridge/src/integration_tests.rs +++ b/Clover-contract/onboarding-bridge/src/integration_tests.rs @@ -9,6 +9,9 @@ #![cfg(test)] + + + use crate::OnboardingBridge; use soroban_sdk::{ diff --git a/Clover-contract/onboarding-bridge/src/tests.rs b/Clover-contract/onboarding-bridge/src/tests.rs index 74d2de4..8ac0f52 100644 --- a/Clover-contract/onboarding-bridge/src/tests.rs +++ b/Clover-contract/onboarding-bridge/src/tests.rs @@ -2295,3 +2295,8 @@ fn test_fund_c_address_zero_amount_max_fee_fails() { + + + + + diff --git a/DEVELOPER_SETUP.md b/DEVELOPER_SETUP.md index 707528d..4b98590 100644 --- a/DEVELOPER_SETUP.md +++ b/DEVELOPER_SETUP.md @@ -9,6 +9,12 @@ Local development environment for the C-Address Onboarding Bridge — Soroban sm + + + + + + | Tool | Version | Install | |---|---|---| | Docker + Docker Compose | 24+ | [docs.docker.com](https://docs.docker.com/get-docker/) | diff --git a/indexer/Cargo.lock b/indexer/Cargo.lock index d7d693c..cf4e730 100644 --- a/indexer/Cargo.lock +++ b/indexer/Cargo.lock @@ -2,6 +2,10 @@ # It is not intended for manual editing. version = 4 + + + + [[package]] name = "ahash" version = "0.8.12" diff --git a/sdk/src/bridge.ts b/sdk/src/bridge.ts index 34c4888..4e4f891 100644 --- a/sdk/src/bridge.ts +++ b/sdk/src/bridge.ts @@ -19,6 +19,9 @@ import { assertAccountAddress, assertContractAddress } from './validate'; + + + import { SorobanRpc, Contract, diff --git a/sdk/src/index.ts b/sdk/src/index.ts index 1f42f1a..ae75b96 100644 --- a/sdk/src/index.ts +++ b/sdk/src/index.ts @@ -5,7 +5,4 @@ export { OffRampIntegration } from './offramp'; export { assertAccountAddress, assertContractAddress } from './validate'; - - - export * from './types'; diff --git a/sdk/src/offramp.ts b/sdk/src/offramp.ts index 2d9df81..24c9f3f 100644 --- a/sdk/src/offramp.ts +++ b/sdk/src/offramp.ts @@ -9,6 +9,11 @@ export class OffRampIntegration { + + + + + /** * Generate a Moonpay purchase URL to fund a C-address via credit card. diff --git a/sdk/src/types.ts b/sdk/src/types.ts index 7f2476f..b875b75 100644 --- a/sdk/src/types.ts +++ b/sdk/src/types.ts @@ -12,6 +12,10 @@ export interface BridgeConfig { + + + + export interface FundCOptions { /** Source account (G-address or C-address) sending the funds */ source: string; diff --git a/sdk/src/validate.ts b/sdk/src/validate.ts index 282e5b4..de2e802 100644 --- a/sdk/src/validate.ts +++ b/sdk/src/validate.ts @@ -11,6 +11,11 @@ export function assertAccountAddress(address: string, field: string): void { + + + + + export function assertContractAddress(address: string, field: string): void { if (!StrKey.isValidContract(address)) { throw new Error(