-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rainbowkit added. Set up forked topos in hardhat (#6)
* Set up Nextjs project * Rainbowkit added. Set up forked topos in hardhat * Removed package-lock.json
- Loading branch information
Showing
8 changed files
with
103 additions
and
4,361 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 |
---|---|---|
|
@@ -34,3 +34,7 @@ yarn-error.log* | |
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts | ||
|
||
# Miscellaneous | ||
package-lock.json | ||
yarn.lock |
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,36 @@ | ||
const { getDefaultWallets } = require("@rainbow-me/rainbowkit"); | ||
import { configureChains, createConfig } from 'wagmi'; | ||
import { | ||
hardhat, mainnet | ||
} from 'wagmi/chains'; | ||
import { publicProvider } from 'wagmi/providers/public'; | ||
|
||
/* @todo: define topos chains | ||
https://wagmi.sh/react/chains#build-your-own | ||
const topos... | ||
*/ | ||
|
||
const { chains, publicClient } = configureChains( | ||
[hardhat, | ||
mainnet | ||
// @todo: add topos chain | ||
], | ||
[ | ||
publicProvider() | ||
] | ||
); | ||
|
||
const { connectors } = getDefaultWallets({ | ||
appName: 'My RainbowKit App', | ||
projectId: 'YOUR_PROJECT_ID', | ||
chains | ||
}); | ||
|
||
const wagmiConfig = createConfig({ | ||
autoConnect: true, | ||
connectors, | ||
publicClient | ||
}) | ||
|
||
export const emtChains = chains | ||
export const emtWagmiConfig = wagmiConfig |
Oops, something went wrong.