-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #350 from ourzora/wagmi-upgrade
Upgrade to latest wagmi version
- Loading branch information
Showing
69 changed files
with
925 additions
and
1,026 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
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
8 changes: 4 additions & 4 deletions
8
apps/web/src/data/contract/client.ts → apps/web/src/data/contract/config.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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
import { getDefaultWallets } from '@rainbow-me/rainbowkit' | ||
import { createClient } from 'wagmi' | ||
import { createConfig } from 'wagmi' | ||
|
||
import { PUBLIC_WALLLET_CONNECT_PROJECT_ID } from 'src/constants/walletconnect' | ||
|
||
import { chains, provider } from './chains' | ||
import { chains, publicClient } from './chains' | ||
|
||
const { connectors } = getDefaultWallets({ | ||
appName: 'Nouns builder', | ||
chains, | ||
projectId: PUBLIC_WALLLET_CONNECT_PROJECT_ID, | ||
}) | ||
|
||
export const client = createClient({ | ||
export const config = createConfig({ | ||
autoConnect: true, | ||
connectors, | ||
provider, | ||
publicClient, | ||
}) |
This file was deleted.
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { createConfig } from 'wagmi' | ||
|
||
import { publicClient } from './chains' | ||
|
||
createConfig({ | ||
publicClient, | ||
}) |
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,25 @@ | ||
import * as Sentry from '@sentry/nextjs' | ||
import { formatEther } from 'viem' | ||
|
||
import { CHAIN_ID } from 'src/typings' | ||
|
||
import { SDK } from '../client' | ||
import { AuctionBidFragment } from '../sdk.generated' | ||
|
||
export const getBids = async (chainId: CHAIN_ID, collection: string, tokenId: string) => { | ||
try { | ||
return SDK.connect(chainId) | ||
.auctionBids({ id: `${collection.toLowerCase()}:${tokenId}` }) | ||
.then((x) => | ||
x.auction?.bids?.map((bid: AuctionBidFragment) => ({ | ||
...bid, | ||
amount: formatEther(bid.amount), | ||
})) | ||
) | ||
} catch (error) { | ||
console.error(error) | ||
Sentry.captureException(error) | ||
await Sentry.flush(2000) | ||
return undefined | ||
} | ||
} |
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
Oops, something went wrong.
617d6de
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
testnet-nouns-builder – ./apps/web
testnet.nouns.build
testnet-nouns-builder-git-main-nouns-builder.vercel.app
testnet-nouns-builder-nouns-builder.vercel.app
617d6de
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
nouns-builder – ./apps/web
nouns-builder-git-main-nouns-builder.vercel.app
zouns-builder.vercel.app
nouns-builder-nouns-builder.vercel.app
www.nouns.build
nouns.build