Skip to content

Conversation

@cecam
Copy link
Collaborator

@cecam cecam commented Aug 27, 2025

Pull Request Overview

Guide to integrate the widget on Dapps that will be used inside third party wallets as mini apps

Summary by CodeRabbit

  • Documentation
    • Added “Third Party Wallets Integration” guide under the Spending Widget, detailing integration of the Bando Widget into wallet mini-apps.
    • Documented ready integrations (Farcaster, Binance, Opera MiniPay) and World App via World MiniKit, including installation, authentication, and configuring the widget with a transaction provider.
    • Included a TypeScript example showing configuration with MiniKit.
    • Updated the table of contents to include the new guide, positioned after “Framework Integration.”

@coderabbitai
Copy link

coderabbitai bot commented Aug 27, 2025

Walkthrough

Se añadió una nueva guía de docs para integrar el Bando Widget con wallets de terceros (incl. World App via MiniKit) y se actualizó el índice (SUMMARY.md) para enlazarla bajo la sección de Spending Widget.

Changes

Cohort / File(s) Change Summary
Docs: Third Party Wallets Integration
SUMMARY.md, widget/wallets-integration.md
Updated TOC to include "Third Party Wallets Integration". Added a new doc explaining integrations (Farcaster, Binance, Opera MiniPay) and World App via @worldcoin/minikit-js; includes install/auth steps and a TS snippet passing MiniKit as transactionProvider.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor Dev as Dev App
  participant BW as Bando Widget
  participant TP as TransactionProvider<br/>(World MiniKit)
  participant WA as Wallet App
  participant L1 as Chain

  Dev->>BW: Initialize BandoWidget({ transactionProvider: MiniKit, ...config })
  BW->>TP: Request wallet auth
  TP->>WA: Open Mini App auth/consent
  WA-->>TP: Auth token / session
  TP-->>BW: Auth success
  Note over BW,TP: Ready to send tx usando MiniKit
  BW->>TP: Create/submit transaction
  TP->>WA: Prompt user to sign
  WA-->>TP: Signed tx / approval
  TP->>L1: Broadcast transaction
  L1-->>TP: Tx receipt / status
  TP-->>BW: Result
  BW-->>Dev: Render status (success/error)
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • luisgj

Poem

Nueva guía cayó, órale qué clean,
Widget y wallets, cruising en la screen.
MiniKit al tiro, firma sin stress,
TX va pa’ la chain, todo con finesse.
Docs al día, compa—ship it sin estrés. 🚀

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/wallets-integration

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (5)
SUMMARY.md (1)

26-29: Hyphenate y reordena el TOC pa’ que no se mezcle con los subitems de Framework.

“Third Party” → “Third‑party”, y deja el título en plural para empatar con la página (“Integrations”). También mueve la entrada debajo de Svelte para mantener juntitos los children de “Framework Integration”.

 * [Framework Integration](widget/framework-integration/README.md)
-* [Third Party Wallets Integration](widget/wallets-integration.md)
   * [Next.js](widget/framework-integration/nextjs.md)
   * [Svelte](widget/framework-integration/svelte.md)
+* [Third‑party Wallet Integrations](widget/wallets-integration.md)
widget/wallets-integration.md (4)

5-5: Consistencia de título: usa “Third‑party”.

Hyphen pa’ gramática y pa’ cuadrar con el TOC sugerido.

-# Third Party Wallet Integrations
+# Third‑party Wallet Integrations

10-16: Ajusta wording pa’ no confundir: dices “one extra step” pero listas varios.

Mejor di “a few extra steps” o sé explícito que es “MiniKit setup + pasar el provider”.

-If you want to integrate it inside **World App**, you’ll just need one extra setup step.
+If you want to integrate it inside **World App**, you’ll need a few extra setup steps (MiniKit setup + passing the provider).

31-42: Snippet: define integrator y muestra imports pa’ que el copy/paste jale al tiro.

Ahorita integrator y WidgetConfig no están definidos/importados en el ejemplo. Esto baja la DX para la raza que copia el snippet.

 ```typescript
-import { MiniKit } from "@worldcoin/minikit-js";
+import { MiniKit } from "@worldcoin/minikit-js";
+// import { BandoWidget, type WidgetConfig } from "@bandohq/widget" // <-- ajusta el import real
+
+const integrator = "YOUR_INTEGRATOR_ID"; // <-- reemplaza con tu integrator

 export const Widget = () => {
   const config = {
     buildUrl: true,
     transactionProvider: MiniKit,
-  } as Partial<WidgetConfig>;
+  } as Partial<WidgetConfig>; // see widget/configure.md for config options

10-15: Añade nota de compatibilidad “out of the box”.

Dices que Farcaster/Binance/Opera MiniPay vienen “by default”. Agrega una línea con versión mínima o limitaciones (p.ej., in-app browser, EIP-1193 bridge), para que la banda no se saque de onda si un entorno no cumple.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 38b73a7 and 2b34753.

📒 Files selected for processing (2)
  • SUMMARY.md (1 hunks)
  • widget/wallets-integration.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
widget/wallets-integration.md

[grammar] ~12-~12: There might be a mistake here.
Context: ...t is ready to run inside: - Farcaster - Binance - Opera MiniPay If you wa...

(QB_NEW_EN)


[grammar] ~13-~13: There might be a mistake here.
Context: ...run inside: - Farcaster - Binance - Opera MiniPay If you want to integrat...

(QB_NEW_EN)

SUMMARY.md

[grammar] ~26-~26: There might be a mistake here.
Context: ...E.md) * Third Party Wallets Integration * [Next.js](widget/framework-integration/ne...

(QB_NEW_EN)

🔇 Additional comments (3)
SUMMARY.md (1)

26-26: Buen add, compa.

El link apunta al path correcto y cae en la nueva guía.

widget/wallets-integration.md (2)

1-42: En general, chido el doc, homie.

Claro y conciso; buen onboarding para wallets de terceros.


35-38: Órale, confirma el tipo de transactionProvider

No estamos seguros si el widget de Bando en @worldcoin/minikit-js (v. agosto 2025) espera:

  • la exportación estática MiniKit (namespace), o
  • una instancia inicializada (new MiniKit(...)).

Además, valida que el objeto que pases implemente la interfaz requerida, por ejemplo:

  • signTransaction(txParams): Promise<string>
  • sendTransaction(signedTx): Promise<TransactionReceipt>
  • (otros métodos que el SDK documente, e.g., getBalance, estimateGas, etc.)

Puntos a checar:

  • widget/wallets-integration.md (líneas 35–38): ajusta el snippet para usar la forma correcta.
  • Revisa la docs o el código fuente de @worldcoin/minikit-js para la firma exacta de los métodos.

No queremos romper el flujo en World App, así que mejor valida antes de mergear.

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.

2 participants