Todas as lições · CCC (TypeScript SDK) · Começa aqui · Glossário
Wallet discovery with SignersControllerPráticoDe uma correção
De uma correção · Verificação: em parte certa · Verificada em 2026-11-19
To support every CCC wallet without the @ckb-ccc/connector UI, call `new ccc.SignersController().refresh(client, callback, {name, icon})`. Keep the callback registered and update the picker, because it fires again as EIP-6963 wallets announce themselves. Treat signers that are `instanceof ccc.SignerDummy` as download links, not connectable wallets.
Porque importa: Without this, wallets that announce late never reach the picker, or overlapping refreshes overwrite the list with stale results. Download links can also be offered or restored as if they were connected wallets.
Medium confidence.
Um teste mudou no mesmo commit
Está ao lado da correcção. Nós não o corremos.
- toastmanAu/daowow:
apps/web/test/build-site.test.js,apps/web/test/model-copy.test.js,apps/web/test/refund-tx.test.js,apps/web/test/vendor.test.js,apps/web/test/wallet-list.test.js
- Conceitos
- Witnesses and signatures, Login and authorization
- Evidência
- De uma correção: de um projeto, verificada contra o commit
- Vista pela primeira vez
- 2026-11-12
- Última mudança
- 2026-11-12
- Última verificação
- 2026-11-19
- Verificação contra o commit
- em parte certa: um núcleo verdadeiro, com uma parte solta ou demasiado larga
Fontes (1)
- 2026-11-12 · toastmanAu/daowow · mais deste projeto
Mais sobre CCC (TypeScript SDK)
- Re-zero the witness lock before recomputing the sign message with getSignHashInfo
- Reserve co-signer witness space before completeFeeBy in multi-signer CCC transactions
- Adding a wallet missing from CCC's connector via a SignersController subclass
Manténs um projeto de onde esta lição veio? Confirma ou corrige
Citar esta lição
LusoCryptoLabs, "Wallet discovery with SignersController", CKB lessons, https://pulse.lusocryptolabs.com/learned/ccc/wallet-discovery-with-signerscontroller, CC BY 4.0, last changed 2026-11-12.