-
Notifications
You must be signed in to change notification settings - Fork 664
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate create-rainbowkit template to src/ dir (#2014)
chore: migrate create-rainbowkit template to src/ dir chore: migrate example dapp to src/ dir
- Loading branch information
1 parent
c1e4b61
commit 28470ab
Showing
18 changed files
with
270 additions
and
261 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
packages/create-rainbowkit/generated-test-app/src/wagmi.ts
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,23 @@ | ||
import { getDefaultConfig } from '@rainbow-me/rainbowkit'; | ||
import { | ||
arbitrum, | ||
base, | ||
mainnet, | ||
optimism, | ||
polygon, | ||
sepolia, | ||
} from 'wagmi/chains'; | ||
|
||
export const config = getDefaultConfig({ | ||
appName: 'RainbowKit App', | ||
projectId: 'YOUR_PROJECT_ID', | ||
chains: [ | ||
mainnet, | ||
polygon, | ||
optimism, | ||
arbitrum, | ||
base, | ||
...(process.env.NEXT_PUBLIC_ENABLE_TESTNETS === 'true' ? [sepolia] : []), | ||
], | ||
ssr: true, | ||
}); |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions
23
packages/create-rainbowkit/templates/next-app/src/wagmi.ts
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,23 @@ | ||
import { getDefaultConfig } from '@rainbow-me/rainbowkit'; | ||
import { | ||
arbitrum, | ||
base, | ||
mainnet, | ||
optimism, | ||
polygon, | ||
sepolia, | ||
} from 'wagmi/chains'; | ||
|
||
export const config = getDefaultConfig({ | ||
appName: 'RainbowKit App', | ||
projectId: 'YOUR_PROJECT_ID', | ||
chains: [ | ||
mainnet, | ||
polygon, | ||
optimism, | ||
arbitrum, | ||
base, | ||
...(process.env.NEXT_PUBLIC_ENABLE_TESTNETS === 'true' ? [sepolia] : []), | ||
], | ||
ssr: true, | ||
}); |
File renamed without changes.
225 changes: 8 additions & 217 deletions
225
packages/example/pages/_app.tsx β packages/example/src/pages/_app.tsx
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.