Skip to content

Deploy vercel #6

Closed
iaiamaga wants to merge 22 commits into
mainfrom
frontv1
Closed

Deploy vercel #6
iaiamaga wants to merge 22 commits into
mainfrom
frontv1

Conversation

@iaiamaga
Copy link
Copy Markdown
Owner

adicionei o deploy.yml para conectar com o vercel e gerar uma url apos cada deploy.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
social-forests-protocol-k52m Ready Ready Preview, Comment May 18, 2026 4:08am
social-forests-protocol-relayer Ready Ready Preview, Comment May 18, 2026 4:08am

Introduce a new relayer service: add relayer/package.json and source files (relayer/src/server.js, relayer/src/stellar.js, relayer/src/config.js, relayer/src/routes/institution.js) to provide an Express-based relayer with Stellar SDK integration and configuration. Also update src/protocol/actionMap.js to support the new relayer-related actions and wiring.
Introduce protocol account and institution services for the relayer, plus client and UI hook updates.

- Add relayer services: protocolAccountService (deterministic Privy->Stellar account provisioning) and institutionProtocolService (Soroban orchestration for institutional onboarding / acquiring trees).
- Update relayer server: new endpoints for /v1/protocol/account, /v1/protocol/institution/acquire-trees and /v1/protocol/institution/create-activity; improved health route, CORS/config usage, and startup log.
- Revise relayer config: normalize env access with required/optional helpers, add privy config, nodeEnv and corsOrigin.
- Update relayer package.json (name/version, nodemon devDependency bump).
- Refactor frontend auth/profile store: expose ROLE_PROFILES, simplify storage helpers, and provide utilities to get/set/clear profiles and list available profiles.
- Enhance protocol client: add fetchProtocolAccount to load protocol account from relayer; ensure wallet address is included in calls and payload normalization.
- Rewrite useProtocolAccount hook: add loading/error state, fetch protocol account when Privy session is available, derive protocol/integrated wallet address, and expose protocolAccount-related flags.

These changes implement server-side relayer logic for protocol interactions and wire up the frontend to retrieve and use protocol accounts for institutional flows.
… frontend

- VITE_PRIVY_APP_ID (autenticação)
- VITE_PROTOCOL_RELAYER_URL (conexão com backend relayer)
- VITE_INSTITUTION_TEST_WALLET (fallback Stellar enquanto Privy Tier 2 não cria wallet automaticamente)
- Variáveis de rede Stellar (testnet)
Enable ed25519 chain support for embedded wallets by adding `supportedChains: [{ type: "ed25519" }]` to the embeddedWallets config in AppProviders (PrivyProvider). This ensures newly created wallets on login can use the ed25519 chain.
O Privy Tier 2 não cria wallets Stellar automaticamente.
Adiciona fallback hardcoded para a conta relayer do protocolo na testnet,
garantindo que o fluxo institucional funcione mesmo sem wallet Stellar no Privy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants