Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Clover-Api/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { App } from './app';




const app = new App();
app.start();
3 changes: 3 additions & 0 deletions Clover-Api/src/lib/password.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 3 additions & 0 deletions Clover-Api/src/routes/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ usersRouter.get('/', (_req: Request, res: Response) => {






/**
* Create a user.
* Validates the request body with zod; on failure returns 400 with
Expand Down
4 changes: 4 additions & 0 deletions Clover-Api/src/store/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export interface PublicUser {







interface StoredUser extends PublicUser {
passwordHash: string;
salt: string;
Expand Down
3 changes: 3 additions & 0 deletions Clover-Api/src/validators/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ export const createUserSchema = z.object({
.regex(/[0-9]/, 'Password must contain a number'),
});




export type CreateUserInput = z.infer<typeof createUserSchema>;
3 changes: 3 additions & 0 deletions Clover-contract/onboarding-bridge/src/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@

#![cfg(test)]




use crate::OnboardingBridge;

use soroban_sdk::{
Expand Down
5 changes: 5 additions & 0 deletions Clover-contract/onboarding-bridge/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2295,3 +2295,8 @@ fn test_fund_c_address_zero_amount_max_fee_fails() {








6 changes: 6 additions & 0 deletions DEVELOPER_SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/) |
Expand Down
4 changes: 4 additions & 0 deletions indexer/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions sdk/src/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ import { assertAccountAddress, assertContractAddress } from './validate';






import {
SorobanRpc,
Contract,
Expand Down
3 changes: 0 additions & 3 deletions sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,4 @@ export { OffRampIntegration } from './offramp';
export { assertAccountAddress, assertContractAddress
} from './validate';




export * from './types';
5 changes: 5 additions & 0 deletions sdk/src/offramp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ export class OffRampIntegration {









/**
* Generate a Moonpay purchase URL to fund a C-address via credit card.
Expand Down
4 changes: 4 additions & 0 deletions sdk/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export interface BridgeConfig {







export interface FundCOptions {
/** Source account (G-address or C-address) sending the funds */
source: string;
Expand Down
5 changes: 5 additions & 0 deletions sdk/src/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down