-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update thorin-core wagmi support & line-height
- Loading branch information
Showing
8 changed files
with
1,053 additions
and
128 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
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,26 @@ | ||
import type { Config } from '@wagmi/core'; | ||
|
||
const globalThing: { | ||
config: Config | undefined; | ||
} = { | ||
config: undefined, | ||
}; | ||
|
||
export const getWagmiConfig = () => { | ||
return globalThing.config; | ||
}; | ||
|
||
export const THORIN_CONNECT_PREFIX = '%c[Thorin Connect]'; | ||
|
||
export const setupConfig = (config: Config | (() => Config)) => { | ||
console.log( | ||
THORIN_CONNECT_PREFIX, | ||
'color: #3396ff', | ||
'Setting up config', | ||
config | ||
); | ||
globalThing.config = typeof config === 'function' ? config() : config; | ||
window.dispatchEvent( | ||
new CustomEvent('wagmiConfigChangedThorin', { detail: config }) | ||
); | ||
}; |
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