Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
a6aabe4
chore(readme): Update README.md
ryzen-xp Apr 1, 2026
6ecc616
fix(readme): fix readme
ryzen-xp Apr 1, 2026
e6edbe8
Merge pull request #382 from Alien-Protocol/main
ryzen-xp Apr 2, 2026
d6a01e0
feat(zk): add witness-genrator.sh file
ryzen-xp Apr 4, 2026
384cb8f
feat(zk): added some verifier contracts
ryzen-xp Apr 16, 2026
8863713
refactor(sdk): remove sdk folder
ryzen-xp Apr 17, 2026
8b38b06
chore(husky): make miner changes in pre-Push
ryzen-xp Apr 17, 2026
4274173
chore(git): deleted .gitignore
ryzen-xp Apr 17, 2026
ea04f47
refactor(code): deleted zk modules and ci
ryzen-xp Apr 21, 2026
415fdcf
refactor(codebase): remove docstring
ryzen-xp Apr 22, 2026
e94d2c1
feat
DavisVT Apr 23, 2026
a004f6b
style: apply cargo fmt formatting
DavisVT Apr 23, 2026
12a0d2d
feat: add role-based admin controls for deployment-critical contract …
Henrichy Apr 23, 2026
d5b2c62
Merge pull request #408 from Henrichy/dev
ryzen-xp Apr 23, 2026
2030477
refactor(factory): convert deploy_username and transfer_username to R…
johnsmccain Apr 23, 2026
d2be02a
chore: add pre-deployment checklist and update roadmap
Apr 23, 2026
24b339e
test: add coverage for AuctionContract singleton and query functions
michaelvic123 Apr 23, 2026
14c2c51
Merge branch 'dev' into test/auction-singleton-and-query-functions
michaelvic123 Apr 23, 2026
ef7ff01
feat: implement ID-indexed auction contract with bidding, closing, an…
amarjeet015 Apr 23, 2026
e7525f2
Merge branch 'dev' into refactor/unify-auctioncontract-result-apis-an…
Amarjeet325 Apr 23, 2026
5693345
feat: implement auction contract logic, event definitions, and unit t…
amarjeet015 Apr 23, 2026
49956b7
refactor: unify AuctionContract Result APIs and structured events
amarjeet015 Apr 23, 2026
f3ffcc3
style: fix formatting for CI
amarjeet015 Apr 23, 2026
614efdc
style: fix formatting in events.rs
amarjeet015 Apr 23, 2026
0b824e9
feat: add member and delegate permissions for username management
amarjeet015 Apr 23, 2026
d65d035
feat: add member and delegate permissions for username management
amarjeet015 Apr 23, 2026
1314eb9
feat: add member and delegate permissions for username management
amarjeet015 Apr 23, 2026
94a32b1
Merge pull request #409 from Johnsmichael150/dev
ryzen-xp Apr 24, 2026
d437dd3
Merge pull request #410 from TheDEV111/chore/add-onchain-predeploymen…
ryzen-xp Apr 24, 2026
b4b3144
Merge pull request #414 from Amarjeet325/refactor/unify-auctioncontra…
ryzen-xp Apr 24, 2026
f8acb98
Merge pull request #415 from Amarjeet325/feat/add-member-and-delegate…
ryzen-xp Apr 24, 2026
bce1a7e
feat: build keeper job for executing due scheduled payments
Apr 24, 2026
69e9630
fix: address CodeRabbit review comments on keeper job
Apr 24, 2026
cb8fd62
test: add comprehensive coverage for FactoryContract transfer_usernam…
Arowolokehinde Apr 24, 2026
dd697c5
Merge branch 'dev' into test/factory-transfer-username-flow
Arowolokehinde Apr 24, 2026
bc8bff9
style: run cargo fmt
Arowolokehinde Apr 24, 2026
8229e2d
fix: remove unused OWNERSHIP_TRANSFERRED import
Arowolokehinde Apr 24, 2026
6f885a6
test: refine missing record fails assertion
Arowolokehinde Apr 24, 2026
0138ca0
fix: unused variable in test_transfer_username_missing_record_fails
Arowolokehinde Apr 24, 2026
7933611
feat(backend): add Swagger API documentation for all backend endpoints
obacollins-lab Apr 24, 2026
8579025
refactor: Remove blank line between CI badges
ryzen-xp Apr 24, 2026
fb8b25f
Merge pull request #421 from Arowolokehinde/test/factory-transfer-use…
ryzen-xp Apr 24, 2026
bfaafc1
chore: initialize backend infrastructure and prisma schema
KevinMB0220 Apr 25, 2026
cae565f
feat: implement vault API endpoints with DTO validation
KevinMB0220 Apr 25, 2026
490ff41
feat: add soroban service for contract fallback logic
KevinMB0220 Apr 25, 2026
b4d484d
Merge pull request #420 from shoaib050326/feat/backend-keeper-execute…
ryzen-xp Apr 25, 2026
050e468
Merge branch 'dev' into feat/backend-vault-api
ryzen-xp Apr 25, 2026
e0f1e0a
Merge pull request #425 from KevinMB0220/feat/backend-vault-api
ryzen-xp Apr 25, 2026
3be9140
feat: implement TypeORM database schema for username and vault entities
amarjeet015 Apr 25, 2026
2eb6d01
Merge branch 'dev' into feat/backend-nestjs-setup
Amarjeet325 Apr 25, 2026
ceb40c7
Merge pull request #426 from Amarjeet325/feat/backend-nestjs-setup
ryzen-xp Apr 25, 2026
7711967
feat: build keeper job for triggering auto-pay rules
Apr 25, 2026
7933e20
feat: implement Stellar contract interaction methods in StellarService
Mmesolove Apr 25, 2026
dc7ab0c
Merge branch 'dev' into feat/backend-swagger-docs
obacollins-lab Apr 25, 2026
b828e0d
docs(backend): add API_KEYS to .env.example
KevinMB0220 Apr 25, 2026
007e4cd
feat(backend): implement ApiKeyGuard for endpoint protection
KevinMB0220 Apr 25, 2026
b43ce4e
feat(backend): register ApiKeyGuard as global application guard
KevinMB0220 Apr 25, 2026
ccfa29b
fix(backend): resolve duplicated blocks in package.json
KevinMB0220 Apr 25, 2026
58d2a0d
fix(backend): resolve conflicting options in tsconfig.json
KevinMB0220 Apr 25, 2026
c19bc26
Merge pull request #430 from KevinMB0220/feat/backend-api-key-auth
ryzen-xp Apr 26, 2026
d163bbf
feat: add Docker Compose setup with PostgreSQL and NestJS server
KevinMB0220 Apr 26, 2026
6bc1da8
Merge pull request #431 from KevinMB0220/feat/backend-docker-setup
ryzen-xp Apr 26, 2026
5e88bda
Merge pull request #427 from shoaib050326/feat/backend-keeper-auto-pay
ryzen-xp Apr 26, 2026
cdff2c6
feat: build auction query API endpoints
JohnOluB Apr 26, 2026
d4fa42f
Merge branch 'dev' into feat/backend-swagger-docs
obacollins-lab Apr 26, 2026
e771e13
refactor: finish EscrowContract structured errors and events
Yash-Karakoti Apr 26, 2026
9597fc0
refactor: normalize CoreContract error handling and structured events
ritik4ever Apr 26, 2026
d5a72f2
fix: add missing doc comments to factory contract
DavisVT Apr 26, 2026
f732148
Merge branch 'dev' into hot
victor62-art Apr 26, 2026
8731f5b
feat: add JSDoc comments to backend vault service methods
Treasure332 Apr 27, 2026
b363f2f
fix: validate minimum bid increment in AuctionContract
felixkamau Apr 27, 2026
b196eb5
style: run cargo fmt
felixkamau Apr 27, 2026
e2e81a6
Merge pull request #407 from victor62-art/hot
ryzen-xp Apr 27, 2026
722f6b8
Merge pull request #423 from obacollins-lab/feat/backend-swagger-docs
ryzen-xp Apr 27, 2026
fe78b92
Merge pull request #447 from JohnOluB/feat/backend-auction-api
ryzen-xp Apr 27, 2026
f421e49
Merge pull request #450 from Treasure332/JSDoc
ryzen-xp Apr 27, 2026
b7c5e37
Merge pull request #451 from felixkamau/fix/auction-min-bid-increment
ryzen-xp Apr 27, 2026
433c53d
fix: reject zero-amount deposits in EscrowContract
BigGoodness Apr 27, 2026
10ef1a5
build: add class-validator, class-transformer and test scripts
KevinMB0220 Apr 28, 2026
dda382f
feat: enable global validation pipe with whitelist and transform
KevinMB0220 Apr 28, 2026
1150261
feat: add validation decorators to auth, vault, and resolver DTOs
KevinMB0220 Apr 28, 2026
d0a7d80
fix: add AppController and AppService to AppModule
KevinMB0220 Apr 28, 2026
b2859f5
test: add validation e2e tests and fix existing e2e tests
KevinMB0220 Apr 28, 2026
06a5efd
Merge pull request #455 from Guddy1-tech/fix-reject-zero-amount-depos…
ryzen-xp Apr 28, 2026
a5fbe12
fix: return 400 on invalid Stellar address in backend routes
bamiebot-maker Apr 28, 2026
8b75f9b
Merge pull request #458 from bamiebot-maker/fix/backend-stellar-addre…
ryzen-xp Apr 28, 2026
9a23ed2
feat: add GET /users/:id/vaults endpoint to backend
Apr 28, 2026
d70fb31
feat: add GET /auctions endpoint with pagination to backend
Apr 28, 2026
c753506
Merge branch 'dev' into feat/backend-stellar-service-methods
Mmesolove Apr 28, 2026
a1cbb7c
chore: add health check and logging (#406)
Listoncrypt Apr 28, 2026
7eb75da
Merge pull request #459 from Jonathan-ai9/dev
ryzen-xp Apr 29, 2026
53c5a30
Merge branch 'dev' into feat/backend-global-validation-pipe
ryzen-xp Apr 29, 2026
3ab816d
Merge pull request #461 from KevinMB0220/feat/backend-global-validati…
ryzen-xp Apr 29, 2026
f32cb8a
Merge branch 'dev' into feat/backend-stellar-service-methods
Mmesolove Apr 29, 2026
da2ddae
chore: add .env.example with all required backend variables
Michvista Apr 29, 2026
1927cf9
Merge pull request #462 from Michvista/chore/backend-env-example
ryzen-xp Apr 29, 2026
98783aa
refactor: extract shared authorization and storage helpers across onc…
bamiebot-maker Apr 24, 2026
9dbd8d2
Merge pull request #424 from bamiebot-maker/refactor/extract-shared-o…
ryzen-xp May 2, 2026
bdbafa3
Merge pull request #429 from Mmesolove/feat/backend-stellar-service-m…
ryzen-xp May 2, 2026
217e6b0
Merge branch 'dev' into chore/backend-health-and-logging
Listoncrypt May 2, 2026
082d0af
Merge pull request #413 from michaelvic123/test/auction-singleton-and…
ryzen-xp May 3, 2026
1260f88
Merge branch 'dev' into refactor/finish-escrowcontract-structured-err…
ryzen-xp May 3, 2026
6208ddd
Merge pull request #448 from Yash-Karakoti/refactor/finish-escrowcont…
ryzen-xp May 3, 2026
821c20c
Merge pull request #449 from anoncon/refactor/normalize-corecontract-…
ryzen-xp May 3, 2026
8852ae9
refactor: update factory contract to support username-specific core c…
ryzen-xp May 5, 2026
5c8a9fb
refactor: full codebase
ryzen-xp May 6, 2026
1d3feee
Merge pull request #460 from Listoncrypt/chore/backend-health-and-log…
ryzen-xp May 8, 2026
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
Empty file added .codex
Empty file.
31 changes: 0 additions & 31 deletions .github/workflows/sdk_tests.yml

This file was deleted.

64 changes: 0 additions & 64 deletions .github/workflows/zk_circuits.yml

This file was deleted.

9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,12 @@ node_modules
.deployments
# Soroban test snapshots — now committed as regression guards
# gateway-contract/contracts/**/test_snapshots/
zk/soroban/bls_setup/*.ptau

# Backend
backend/node_modules
backend/dist
backend/.env
backend/coverage

.codex
9 changes: 0 additions & 9 deletions .gitmodules

This file was deleted.

4 changes: 2 additions & 2 deletions .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ echo "🌿 Validating branch name..."
branch=$(git symbolic-ref --short HEAD)
branch_regex='^(feat|fix|docs|refactor|test|chore)\/[a-z0-9][a-z0-9\-]*[a-z0-9]$'

# Allow main, develop, staging to push freely
if [ "$branch" = "main" ] || [ "$branch" = "develop" ] || [ "$branch" = "staging" ]; then
# Allow protected integration branches to push freely
if [ "$branch" = "main" ] || [ "$branch" = "dev" ] || [ "$branch" = "develop" ] || [ "$branch" = "staging" ]; then
echo "✅ On protected branch '$branch' — skipping branch name check."
else
if echo "$branch" | grep -qE "$branch_regex"; then
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

# 🌉 Alien Gateway

[![Smart Contracts CI](https://github.com/Alien-Protocol/Alien-Gateway/actions/workflows/build_test.yml/badge.svg)](https://github.com/Alien-Protocol/Alien-Gateway/actions/workflows/build_test.yml)
[![Checks](https://github.com/Alien-Protocol/Alien-Gateway/actions/workflows/checks.yml/badge.svg)](https://github.com/Alien-Protocol/Alien-Gateway/actions/workflows/checks.yml)
[![ZK Circuits CI](https://github.com/Alien-Protocol/Alien-Gateway/actions/workflows/zk_circuits.yml/badge.svg)](https://github.com/Alien-Protocol/Alien-Gateway/actions/workflows/zk_circuits.yml)
[![Smart Contracts CI](https://github.com/Alien-Protocol/Alien-Gateway/actions/workflows/contract.yml/badge.svg)](https://github.com/Alien-Protocol/Alien-Gateway/actions/workflows/contract.yml)
[![Validator CI](https://github.com/Alien-Protocol/Alien-Gateway/actions/workflows/pre-commit-validation.yml/badge.svg)](https://github.com/Alien-Protocol/Alien-Gateway/actions/workflows/pre-commit-validation.yml)


<p align="center">
<img
Expand Down
8 changes: 8 additions & 0 deletions backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
dist
npm-debug.log
.git
.env
Dockerfile
docker-compose.yml
docker-compose.override.yml
38 changes: 38 additions & 0 deletions backend/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# --- Server Configuration ---
PORT=3000 # The port the backend server will run on
TYPEORM_SYNCHRONIZE=true # Auto-sync database schema (Set to false in production)

# --- Database Configuration ---
# Individual connection parameters (used by some services)
POSTGRES_USER=alien
POSTGRES_PASSWORD=alienpassword
POSTGRES_DB=alien_gateway
POSTGRES_PORT=5432
# Full connection string used by the TypeORM data source
DATABASE_URL=postgres://alien:alienpassword@localhost:5432/alien_gateway

# --- Stellar / Soroban Configuration ---
# RPC endpoints for interacting with the Soroban network
STELLAR_RPC_URL=https://soroban-testnet.stellar.org
SOROBAN_RPC_URL=https://soroban-testnet.stellar.org
# Network identifier for transaction signing
STELLAR_NETWORK_PASSPHRASE="Test SDF Network ; September 2015"

# --- Smart Contract IDs ---
CORE_CONTRACT_ID=C... # The main protocol contract address
ESCROW_CONTRACT_ID=C... # Escrow logic contract address
FACTORY_CONTRACT_ID=C... # Factory for creating new protocol instances
AUCTION_CONTRACT_ID=C... # Auction mechanism contract address

# --- API Authentication ---
API_KEYS=key1,key2,key3 # Comma-separated list of valid API keys for guarding routes

TYPEORM_SYNCHRONIZE=true
PORT=3000

# Logging Configuration
LOG_LEVEL=info

# --- Keeper Service (Automation) ---
KEEPER_ENABLED=false # Toggle for background automation tasks
KEEPER_SECRET_KEY= # Private key used by the keeper to sign transactions
3 changes: 3 additions & 0 deletions backend/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
data.sqlite
4 changes: 4 additions & 0 deletions backend/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
}
23 changes: 23 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Base stage for shared configuration
FROM node:20-alpine AS base
WORKDIR /usr/src/app
COPY package*.json ./

# Builder stage: install all dependencies and build the app
FROM base AS builder
RUN npm ci
COPY . .
RUN npm run build

# Production stage: install only production dependencies and copy built assets
FROM base AS production
ARG NODE_ENV=production
ENV NODE_ENV=${NODE_ENV}
RUN npm ci --only=production
COPY --from=builder /usr/src/app/dist ./dist

# Expose the API port
EXPOSE 3000

# Start the application
CMD ["node", "dist/main"]
98 changes: 98 additions & 0 deletions backend/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<p align="center">
<a href="http://nestjs.com/" target="blank"><img src="https://nestjs.com/img/logo-small.svg" width="120" alt="Nest Logo" /></a>
</p>

[circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456
[circleci-url]: https://circleci.com/gh/nestjs/nest

<p align="center">A progressive <a href="http://nodejs.org" target="_blank">Node.js</a> framework for building efficient and scalable server-side applications.</p>
<p align="center">
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/v/@nestjs/core.svg" alt="NPM Version" /></a>
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
<a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
<a href="https://paypal.me/kamilmysliwiec" target="_blank"><img src="https://img.shields.io/badge/Donate-PayPal-ff3f59.svg" alt="Donate us"/></a>
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://img.shields.io/badge/Support%20us-Open%20Collective-41B883.svg" alt="Support us"></a>
<a href="https://twitter.com/nestframework" target="_blank"><img src="https://img.shields.io/twitter/follow/nestframework.svg?style=social&label=Follow" alt="Follow us on Twitter"></a>
</p>
<!--[![Backers on Open Collective](https://opencollective.com/nest/backers/badge.svg)](https://opencollective.com/nest#backer)
[![Sponsors on Open Collective](https://opencollective.com/nest/sponsors/badge.svg)](https://opencollective.com/nest#sponsor)-->

## Description

[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.

## Project setup

```bash
$ npm install
```

## Compile and run the project

```bash
# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod
```

## Run tests

```bash
# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov
```

## Deployment

When you're ready to deploy your NestJS application to production, there are some key steps you can take to ensure it runs as efficiently as possible. Check out the [deployment documentation](https://docs.nestjs.com/deployment) for more information.

If you are looking for a cloud-based platform to deploy your NestJS application, check out [Mau](https://mau.nestjs.com), our official platform for deploying NestJS applications on AWS. Mau makes deployment straightforward and fast, requiring just a few simple steps:

```bash
$ npm install -g @nestjs/mau
$ mau deploy
```

With Mau, you can deploy your application in just a few clicks, allowing you to focus on building features rather than managing infrastructure.

## Resources

Check out a few resources that may come in handy when working with NestJS:

- Visit the [NestJS Documentation](https://docs.nestjs.com) to learn more about the framework.
- For questions and support, please visit our [Discord channel](https://discord.gg/G7Qnnhy).
- To dive deeper and get more hands-on experience, check out our official video [courses](https://courses.nestjs.com/).
- Deploy your application to AWS with the help of [NestJS Mau](https://mau.nestjs.com) in just a few clicks.
- Visualize your application graph and interact with the NestJS application in real-time using [NestJS Devtools](https://devtools.nestjs.com).
- Need help with your project (part-time to full-time)? Check out our official [enterprise support](https://enterprise.nestjs.com).
- To stay in the loop and get updates, follow us on [X](https://x.com/nestframework) and [LinkedIn](https://linkedin.com/company/nestjs).
- Looking for a job, or have a job to offer? Check out our official [Jobs board](https://jobs.nestjs.com).

## Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please [read more here](https://docs.nestjs.com/support).

## Stay in touch

- Author - [Kamil Myśliwiec](https://twitter.com/kammysliwiec)
- Website - [https://nestjs.com](https://nestjs.com/)
- Twitter - [@nestframework](https://twitter.com/nestframework)

## License

Nest is [MIT licensed](https://github.com/nestjs/nest/blob/master/LICENSE).
Loading
Loading