Frontend imported. Real backend wired in.
This app now authenticates against Fastify, loads campaigns from the API, creates founder launches, and records contributions through the backend flow.
diff --git a/submissions/OrbitX_Equifund/.env.example b/submissions/OrbitX_Equifund/.env.example new file mode 100644 index 0000000..af3c943 --- /dev/null +++ b/submissions/OrbitX_Equifund/.env.example @@ -0,0 +1,49 @@ +DATABASE_ENGINE=sqlite +PORT=4000 +HOST=0.0.0.0 +JWT_SECRET=change-me-now +DATABASE_PATH=./data/stellaris.db +DATABASE_URL= +CORS_ORIGIN=* + +LIQUIDITY_BUFFER_RATIO=0.3 +PROTOCOL_RESERVE_RATIO=0.1 +INDIA_LIQUIDITY_BUFFER_RATIO=0.3 +INDIA_YIELD_DEPLOYMENT_RATIO=0.7 +GLOBAL_LIQUIDITY_BUFFER_RATIO=0.3 +GLOBAL_YIELD_DEPLOYMENT_RATIO=0.7 + +INDIA_FIAT_PROVIDER=Razorpay +INDIA_ESCROW_BANK_NAME=Escrow Banking Partner +INDIA_ESCROW_BANK_ACCOUNT= +INDIA_ESCROW_BANK_IFSC= +RAZORPAY_KEY_ID= +RAZORPAY_KEY_SECRET= +PHONEPE_MERCHANT_ID= +PHONEPE_SALT_KEY= +PHONEPE_SALT_INDEX= + +AAVE_POOL_ADDRESS= +MORPHO_MARKET_ID= +USDC_TOKEN_ADDRESS= + +GOOGLE_CLIENT_ID= +GOOGLE_CLIENT_SECRET= +APPLE_CLIENT_ID= +APPLE_TEAM_ID= +APPLE_KEY_ID= +APPLE_PRIVATE_KEY= +FACEBOOK_APP_ID= +FACEBOOK_APP_SECRET= + +ESCROW_MODE=MOCK +ESCROW_RPC_URL= +ESCROW_CONTRACT_ADDRESS= +ESCROW_ADMIN_PRIVATE_KEY= +ESCROW_SYNC_START_BLOCK=0 +ESCROW_CHAIN_ID=11155111 + +VOTING_WINDOW_HOURS=72 +MILESTONE_APPROVAL_THRESHOLD=0.6 +MILESTONE_QUORUM_THRESHOLD=0.3 +ARBITRATION_MIN_VOTES=3 diff --git a/submissions/OrbitX_Equifund/.gitignore b/submissions/OrbitX_Equifund/.gitignore new file mode 100644 index 0000000..f670aa6 --- /dev/null +++ b/submissions/OrbitX_Equifund/.gitignore @@ -0,0 +1,5 @@ +node_modules +dist +data +.env +*.log diff --git a/submissions/OrbitX_Equifund/Frontend/equifund---web3-crowdfunding/.env.example b/submissions/OrbitX_Equifund/Frontend/equifund---web3-crowdfunding/.env.example new file mode 100644 index 0000000..01fe290 --- /dev/null +++ b/submissions/OrbitX_Equifund/Frontend/equifund---web3-crowdfunding/.env.example @@ -0,0 +1,12 @@ +# GEMINI_API_KEY: Required for Gemini AI API calls. +# AI Studio automatically injects this at runtime from user secrets. +# Users configure this via the Secrets panel in the AI Studio UI. +GEMINI_API_KEY="MY_GEMINI_API_KEY" + +# APP_URL: The URL where this applet is hosted. +# AI Studio automatically injects this at runtime with the Cloud Run service URL. +# Used for self-referential links, OAuth callbacks, and API endpoints. +APP_URL="MY_APP_URL" + +# Frontend API base URL for the Stellaris backend. +VITE_API_BASE_URL="http://localhost:4000/api" diff --git a/submissions/OrbitX_Equifund/Frontend/equifund---web3-crowdfunding/.gitignore b/submissions/OrbitX_Equifund/Frontend/equifund---web3-crowdfunding/.gitignore new file mode 100644 index 0000000..5a86d2a --- /dev/null +++ b/submissions/OrbitX_Equifund/Frontend/equifund---web3-crowdfunding/.gitignore @@ -0,0 +1,8 @@ +node_modules/ +build/ +dist/ +coverage/ +.DS_Store +*.log +.env* +!.env.example diff --git a/submissions/OrbitX_Equifund/Frontend/equifund---web3-crowdfunding/README.md b/submissions/OrbitX_Equifund/Frontend/equifund---web3-crowdfunding/README.md new file mode 100644 index 0000000..d931b88 --- /dev/null +++ b/submissions/OrbitX_Equifund/Frontend/equifund---web3-crowdfunding/README.md @@ -0,0 +1,20 @@ +
This app now authenticates against Fastify, loads campaigns from the API, creates founder launches, and records contributions through the backend flow.
Founder account is prefilled so you can create and publish immediately.
Browse campaigns from the backend and fund them through the real contribution endpoint.
{selected.description}
{token ? 'Posts directly to the backend contribution flow.' : 'Sign in with a backer account to contribute.'}
This form now creates and publishes a backend campaign. Founder KYC still applies, so the seeded founder account is the fastest full-path test.
Your founder dashboard now reads actual backend campaigns and milestone states.
{item.value}
Portfolio and activity are now derived from real contribution records in the backend.
{item.value}
The route is preserved, while the main work is now centered around the connected crowdfunding flows.
Explore campaigns, contribute as a backer, and track backend-synced activity.
Create, publish, and manage milestone-backed campaigns through the API.
Sign in to access the platform
+We replaced the 5% platform fee with a global DeFi liquidity pool. Creators get 100% of their funds. Backers get absolute accountability.
+Funds are locked in a trustless vault. Money is only released when creators prove they've hit their milestones. No more vaporware.
+Idle funds are deployed to Aave. The yield pays for the platform. You keep 100% of what you raise.
+ +Whales can't dictate the outcome. Voting power scales by the square root of investment, capped at 5%.
+When a milestone passes, our liquidity buffer pays out instantly. No waiting 60 days for chargeback clearance.
+ +A seamless bridge from Web2 payments to Web3 execution.
+{step.desc}
+Join the next generation of founders building with absolute accountability and zero platform fees.
+{project.desc}
+ +Funding actions post directly to the backend contribution flow.
++ {fundingRail === 'INDIA_FIAT' + ? 'Showing a judge-friendly Razorpay demo flow, then saving the contribution through the backend.' + : 'Saving your contribution through the Fastify backend.'} +
++ Your campaign will be created and published through the backend using the signed-in founder account. +
+Manage your campaign, track escrow unlocks, and view backer analytics.
+Track your backed projects, claim tokens, and monitor your unrealized equity.
+