Skip to content

Commit

Permalink
Merge branch 'main' into chore/remove-ontouchstart-event-from-comps
Browse files Browse the repository at this point in the history
  • Loading branch information
enesozturk authored Jan 28, 2025
2 parents 8e50f0a + 3b3851c commit 3f12a85
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/fresh-snakes-sin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@reown/appkit-siwx': patch
---

Resolved import errors for `SIWXVerifier`, `SIWXStorage`, and `SIWXMessenger` in the `@reown/appkit-siwx` package.
1 change: 1 addition & 0 deletions examples/html-wagmi-cdn/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ <h1 class="page-title">HTML Wagmi Example with CDN</h1>
<button id="open-modal">Open</button>
<button id="disconnect">Disconnect</button>
<button id="switch-to-ethereum">Switch to Ethereum</button>
<button id="sign-message">Sign Message</button>
<button id="toggle-theme">
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down
13 changes: 13 additions & 0 deletions examples/html-wagmi-cdn/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,18 @@ document.getElementById('switch-to-ethereum')?.addEventListener('click', () => {
modal.switchNetwork(networks.mainnet)
})

async function signMessage() {
if (eip155Provider && accountState.address) {
try {
await eip155Provider.request({
method: 'personal_sign',
params: ['Hello from AppKit!', accountState.address]
})
} catch (error) {
console.error('Error signing message:', error)
}
}
}

// Set initial theme and UI state
updateTheme(themeState.themeMode)
1 change: 1 addition & 0 deletions examples/html-wagmi/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ <h1 class="page-title">HTML Wagmi Example</h1>
<button id="open-modal">Open</button>
<button id="disconnect">Disconnect</button>
<button id="switch-to-ethereum">Switch to Ethereum</button>
<button id="sign-message">Sign Message</button>
<button id="toggle-theme">
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down
13 changes: 13 additions & 0 deletions examples/html-wagmi/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,18 @@ document.getElementById('switch-to-ethereum')?.addEventListener('click', () => {
modal.switchNetwork(networks.mainnet)
})

async function signMessage() {
if (eip155Provider && accountState.address) {
try {
await eip155Provider.request({
method: 'personal_sign',
params: ['Hello from AppKit!', accountState.address]
})
} catch (error) {
console.error('Error signing message:', error)
}
}
}

// Set initial theme and UI state
updateTheme(themeState.themeMode)
4 changes: 4 additions & 0 deletions packages/siwx/src/core/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export * from './SIWXConfig.js'
export * from './SIWXMessenger.js'
export * from './SIWXStorage.js'
export * from './SIWXVerifier.js'
1 change: 1 addition & 0 deletions packages/siwx/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from './messengers/index.js'
export * from './verifiers/index.js'
export * from './storages/index.js'
export * from './configs/index.js'
export * from './core/index.js'

0 comments on commit 3f12a85

Please sign in to comment.