Skip to content

Frontend integration: Connect Wallet, @stacks/connect, @stacks/transactions#3

Merged
DevSolex merged 30 commits intomainfrom
frontend-integration
Feb 17, 2026
Merged

Frontend integration: Connect Wallet, @stacks/connect, @stacks/transactions#3
DevSolex merged 30 commits intomainfrom
frontend-integration

Conversation

@DevSolex
Copy link
Copy Markdown
Owner

Summary

Frontend integration with Connect Wallet, contract calls, and S-pay protocol.

@stacks/connect

  • showConnect, openContractCall, openSTXTransfer
  • UserSession, AppConfig

@stacks/transactions

  • stringAsciiCV, uintCV, principalCV, cvToHex, deserializeCV, cvToValue
  • Contract call builders and read-only helpers

Features

  • Connect Wallet on home page and Navbar
  • Register User, Register Merchant, Vault Deposit
  • Process Payment, STX transfer
  • Read-only: get-user-data, get-protocol-status
  • Pages: /register, /pay, /vault, /merchant/register
  • Hooks for all contract interactions

- Add ConnectWallet component using Stacks connect
- Wire Connect/Disconnect and show truncated address when connected
- Replace static hero buttons with ConnectWallet
- Wire useStacks in Navbar for connect/disconnect
- Show truncated address when connected
- SPAY_CONTRACT address and name for mainnet s-pay-v3
- buildRegisterUserOptions, buildVaultDepositOptions, buildProcessPaymentOptions
- Use stringAsciiCV, uintCV, principalCV from @stacks/transactions
…text

- Add callContract to context using @stacks/connect openContractCall
- Wire userSession and network for wallet signing
- Show Connect Wallet on all pages
- useRegisterUser uses buildRegisterUserOptions + callContract
- useVaultDeposit uses buildVaultDepositOptions + callContract
- Uses stringAsciiCV from @stacks/transactions
- callReadOnly uses cvToHex for encoding, deserializeCV for decoding
- Uses callReadOnly with principalCV from @stacks/transactions
- Uses useRegisterUser hook and buildRegisterUserOptions
@DevSolex DevSolex merged commit ab6e319 into main Feb 17, 2026
0 of 2 checks passed
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.

1 participant