Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
adicionei o deploy.yml para conectar com o vercel e gerar uma url apos cada deploy.