-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: link-mode * chore: added socket connection listeners + toasts * feat: added logs screen * feat: added logs to wallet settings * fix: added wc: old links to listener * chore: added new loaders + moved deeplink logic to root App file * chore: removed extra gradle cache from action * chore: added minimizer to go back to browsers in android * chore: show unsupported chain modal
- Loading branch information
1 parent
c6520a0
commit fbde29c
Showing
61 changed files
with
3,048 additions
and
2,175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Web3Modal + Wagmi example | ||
# AppKit + Wagmi example | ||
|
||
## Getting Started | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
284 changes: 143 additions & 141 deletions
284
dapps/W3MWagmi/ios/W3MWagmi.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import {useCallback, useEffect, useState} from 'react'; | ||
import {useAccount} from 'wagmi'; | ||
import SettingsStore from '@/stores/SettingsStore'; | ||
|
||
export function useLogs() { | ||
const {connector} = useAccount(); | ||
const [provider, setProvider] = useState<any>(null); | ||
|
||
const getLogs = useCallback(async () => { | ||
if (provider?.signer?.client?.core) { | ||
const _logs = | ||
await provider.signer?.client.core.logChunkController?.getLogArray(); | ||
SettingsStore.setLogs(_logs ? _logs.reverse() : []); | ||
} | ||
}, [provider]); | ||
|
||
useEffect(() => { | ||
const getProvider = async () => { | ||
if (connector && connector?.getProvider) { | ||
const _provider = await connector?.getProvider(); | ||
setProvider(_provider); | ||
} | ||
}; | ||
|
||
getProvider(); | ||
}, [connector]); | ||
|
||
useEffect(() => { | ||
const interval = setInterval(() => { | ||
getLogs(); | ||
}, 1000); | ||
|
||
return () => clearTimeout(interval); | ||
}, [getLogs]); | ||
} |
Oops, something went wrong.