Commit 7718a2c
authored
chore: merge v5.0.0 changes (#7)
* feat(wallet): add full signing capabilities
* fix(flow): fix reconnect flow
* feat(protocolVersion): introduce protocol version 2
* fix(state): fix wallet state issue
* feat(examples): v2
* fix(code): cleanup
* fix(code): cleanup
* fix(code): naming
* feat(ui): unify methods
* feat(ui): poll balance
* chore(code): remove unused code
* chore(code): remove magic numbers
* fix(test): restore wallet for tests
* chore(P2PClient): adjust comment
* chore(pipeline): allow to publish alpha via pipeline and version bump
* fix(pipeline): adjust chmod during build step to reference new script
* feat(modal): add options for terms and privacy policy links
* feat(): 5.0.0-alpha.1
* fix(wallet): add v3 response handling
* fix(wallet): update v3 example
* chore(release): version 5.0.0-alpha.2
* feat(wallet): update v3 example
* fix(matrix): add client-side request timeout to prevent connection staleness
* chore(release): version 5.0.0-alpha.3
* fix(ui): isolate modal from host page styles with Shadow DOM reset (airgap-it#921)
* fix(ui): resolve extension detection and add deprecated wallet support (airgap-it#920)
* feat(ui): implement dynamic wallet registry and deprecated wallet support (airgap-it#914, airgap-it#920)
* chore(release): version 5.0.0-alpha.4
* feat(errors): bubble up errors
* feat(examples): add Chrome extension wallet with session key helpers and storage fix
* fix(e2e): update Temple Wallet test to match new extension detection UI
* chore(release): version 5.0.0-beta.1
* chore(examples): remove unused function from dapp and add curve selection to wallet
* feat(matrix): improve resilience when Matrix local state is out of sync
* feat(): tallinnnet
* fix(dapp): reject requestPermissions() promise when user closes modal (airgap-it#905)
* chore(release): version 5.0.0-beta.2
* fix(ci): bundle new wallets
* feat(): tezlink shadownet
* chore(release): version 5.0.0-beta.3
* fix(chrome-extension): improved lifecycle for sample wallet
* chore(tezos): adjust tezlink shadownet identifier
* chore(wallets): update to latest wallets list
* feat(): 5.0.0
* fix(beacon-ui): resolve rollup native module error in CI
* chore: rename beacon-sdk to octez.connect for v5.0.0
- Rename all @airgap/beacon-* packages to @tezos-x/octez.connect-*
- Rename package directories from beacon-* to octez.connect-*
- Update GitHub URLs from airgap-it/beacon-sdk to trilitech/octez.connect
- Update documentation URLs to octez-connect.tezos.com
- Update Matrix relay nodes to octez.io
- Set internal package versions to 1.0.0
- Update SDK_VERSION constant to 1.0.0
- Update tsconfig paths, webpack scripts, and CI workflows
* fix: correct stale tsconfig paths for blockchain data imports
The migration script missed relative directory references in tsconfig.json
path mappings. All 3 blockchain packages pointed to ../beacon-ui/src/data/*
instead of ../octez.connect-ui/src/data/* causing TS2307 build errors.
* fix: correct stale references missed by migration script
- Fix typedocs URL: typeoctez-connect.tezos.com → typedocs.octez-connect.tezos.com
- Fix homepage URL: octez.connect.trilitech.com → octez-connect.tezos.com
- Fix root package.json homepage: trilitech.com → octez-connect.tezos.com
- Replace all beacon-sdk text references with octez.connect-sdk in READMEs
- Update package.json descriptions from beacon-sdk to octez.connect-sdk
- Fix chrome extension example appUrl to trilitech/octez.connect
- Update .gitlab-ci.yml container tags from beacon-sdk to octez-connect
- Fix events.ts JSDoc comment
* fix: address Copilot review feedback
- Fix SDK tsconfig path alias pointing to dapp instead of sdk
- Add missing walletconnect transport dependency to SDK package.json
- Fix typo 'occured' → 'occurred' in UnknownBeaconError
- Fix grammar 'scope were' → 'scopes were' in MissingRequiredScope
- Fix errorCode logic in InvalidReceivedSessionNamespace to use type
instead of data presence
- Fix walletconnect README header to use correct package name
- Fix chrome-extension README: npm run watch → npm run dev
- Update chrome-extension README description to reference octez.connect
* fix: resolve e2e test failures in p2p and WalletConnect flows
1. Toast closeToast regression: The octez.connect refactoring added
configDelayTimer tracking to scheduleConfigUpdate, but closeToast()
was cancelling the pending timer. This caused the success toast
(scheduled with a 500ms delay) to be dropped when the "request sent"
toast auto-closed first. Fix: don't cancel configDelayTimer in
closeToast(), and re-open the toast when the delayed config fires.
2. Rate limit test flakiness: The test clicked #sendToSelf twice,
relying on the pairing permission request still being in the 5-second
rate limit window (threshold is >2). When pairing took >5s, only 2
requests were counted, which didn't exceed the limit. Fix: send 3
rapid requests to reliably trigger the rate limit.
* fix: restore isInitPending guard in makeRequest to prevent transport destruction
The v5 makeRequest()/makeRequestV3() methods unconditionally destroyed
transports and aborted init on every call, even when init had already
completed successfully. This was a regression from v4 which used an
isInitPending flag to guard the abort block.
Root cause: v5 replaced v4's isInitPending check with
_initPromiseReject as a presence flag, but _initPromiseReject was
never cleared after successful init resolution. This caused every
makeRequest() call to:
1. Reject the (already resolved) init promise
2. Disconnect all transports (destroying WC sessions)
3. Nullify transport references
4. Force a full re-initialization
This broke:
- WC sign flow: transport disconnection destroyed the active WC
session, so the wallet never received the sign request and the
success toast never appeared
- Rate limiting: concurrent makeRequest() calls aborted each other's
init, so only the last call reached addRequestAndCheckIfRateLimited()
with a count of 1, never exceeding the threshold of 2
Fix: Restore v4's isInitPending pattern - only enter the abort/disconnect
block when init is genuinely still pending, and never unconditionally
nullify transport references.
* chore: clean up taquito/beacon refs + deploy dapp
* chore: clean up taquito/beacon refs
* fix: address Copilot review comments — stale imports, dead links, and type safety
- Fix stale @airga/beacon-* imports in tezos-sapling, tezos, and substrate README examples
- Replace dead generate-wallet-list.ts links with beacon-wallet-list repo reference
- Fix dapp.html PAIR_ABORTED handler accessing .reason on undefined event data
- Improve diagnostics.ts type narrowing for errorData using intermediate cast
- Pin tsx as devDependency (used by prebuild script)
* fix rate limit failing tests
* add author name to package.json1 parent 5c951cf commit 7718a2c
File tree
199 files changed
+15681
-7812
lines changed- .github/workflows
- .gitlab/issue_templates
- assets
- alert
- logos
- e2e
- examples
- chrome-extension
- public/icons
- src
- background
- beacon
- content
- popup
- components
- pages
- wallet
- packages
- octez.connect-blockchain-substrate
- src
- octez.connect-blockchain-tezos-sapling
- src
- octez.connect-blockchain-tezos
- src
- octez.connect-core
- src
- clients/client
- errors
- storage
- transports
- clients
- utils
- octez.connect-dapp
- __tests__/dapp-client
- src
- dapp-client
- octez.connect-sdk
- octez.connect-transport-matrix
- src
- communication-client
- matrix-client
- octez.connect-transport-postmessage
- octez.connect-transport-walletconnect
- src
- communication-client
- octez.connect-types
- src
- types
- beaconV3
- octez.connect-ui
- __tests__
- hooks
- ui/alert
- src
- components
- alert
- icons
- info
- qr
- data
- ui
- alert
- components
- info-alert
- pairing-alert
- components
- mobile-pairing
- qr-code
- wc-init-error
- hooks
- toast
- utils
- octez.connect-utils
- src
- utils
- octez.connect-wallet
- __tests__/client
- src
- client
- interceptors
- scripts
- blockchains
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
199 files changed
+15681
-7812
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
72 | | - | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
0 commit comments