Skip to content

Commit

Permalink
Merge pull request #490 from rabbitholegg/mmackz/zora-sdk-update
Browse files Browse the repository at this point in the history
chore(zora): update zora protocol sdk to v 0.5.17
  • Loading branch information
mmackz authored Jul 19, 2024
2 parents de2426a + a5e3c75 commit 9a37e2e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 111 deletions.
6 changes: 6 additions & 0 deletions .changeset/slimy-trees-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@rabbitholegg/questdk-plugin-utils": minor
"@rabbitholegg/questdk-plugin-zora": minor
---

update zora protocol sdk and add base sepolia to viem chains
3 changes: 3 additions & 0 deletions packages/utils/src/helpers/chain-id-to-viem-chain.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
arbitrum,
base,
baseSepolia,
blast,
mainnet,
optimism,
Expand All @@ -15,6 +16,8 @@ export const chainIdToViemChain = (chainId: number) => {
return arbitrum
case base.id:
return base
case baseSepolia.id:
return baseSepolia
case blast.id:
return blast
case mainnet.id:
Expand Down
2 changes: 1 addition & 1 deletion packages/zora/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"@rabbitholegg/questdk-plugin-utils": "workspace:*"
},
"dependencies": {
"@zoralabs/protocol-sdk": "0.5.6-exports.0",
"@zoralabs/protocol-sdk": "0.5.17",
"@zoralabs/universal-minter": "0.2.15",
"@rabbitholegg/questdk-plugin-utils": "workspace:*",
"@rabbitholegg/questdk": "workspace:*"
Expand Down
4 changes: 2 additions & 2 deletions packages/zora/src/Zora.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export const getMintIntent = async (
try {
fixedPriceSaleStratAddress = (
await getSalesConfigAndTokenInfo(chainId, contractAddress, tokenId)
).fixedPrice.address
).salesConfig.address
} catch {
console.error(
`Unable to fetch salesConfigAndTokenInfo, defaulting price sale strategy address to ${fixedPriceSaleStratAddress}`,
Expand Down Expand Up @@ -289,7 +289,7 @@ export const simulateMint = async (
try {
fixedPriceSaleStratAddress = (
await getSalesConfigAndTokenInfo(chainId, contractAddress, tokenId)
).fixedPrice.address
).salesConfig.address
} catch {
console.error('Unable to fetch salesConfigAndTokenInfo')
}
Expand Down
115 changes: 7 additions & 108 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9a37e2e

Please sign in to comment.