generated from z0r0z/zenplate
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18752d7
commit d3ab218
Showing
5 changed files
with
43 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
'use client' | ||
import { useAccount } from "wagmi" | ||
|
||
const versions: { | ||
[key: number]: string | ||
} = { | ||
1: "1.0.0", | ||
42161: "1.0.1 (nightly)", | ||
} | ||
|
||
export const Version = () => { | ||
const { chain } = useAccount(); | ||
|
||
return <span> | ||
{`[ Version ${versions[chain ? chain.id : 1]} ]`} | ||
</span> | ||
} | ||
|
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,2 +1,10 @@ | ||
export const IE_ADDRESS = "0x1E00000000Cf8ba83e0005c59c1Bf1C4682C8E00"; | ||
import { Address } from "viem"; | ||
|
||
export const IE_ADDRESS: { | ||
[key: number]: Address | ||
} = { | ||
1: "0x1E00000000Cf8ba83e0005c59c1Bf1C4682C8E00", | ||
42161: "0x000000001e202b5b84e56400f409800065cb6d3c" | ||
}; | ||
|
||
export const ETH_ADDRESS = "0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE"; |