This repository has been archived by the owner on Jun 3, 2023. It is now read-only.
generated from public-assembly/assemble-package
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #65 from public-assembly/63-integrate-zora-allowli…
…st-feature [WIP]: 63 integrate zora allowlist feature
- Loading branch information
Showing
105 changed files
with
12,722 additions
and
296 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@public-assembly/zora-drops-utils': minor | ||
--- | ||
|
||
Removed console.log" |
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,5 @@ | ||
--- | ||
'@public-assembly/zora-drops-utils': minor | ||
--- | ||
|
||
Added allowlist functionality and updated mint calls to use typechain |
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,5 @@ | ||
--- | ||
'@public-assembly/zora-drops-utils': minor | ||
--- | ||
|
||
Fixes to mint quantity selection and add presale info to dropscontract return |
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,5 @@ | ||
--- | ||
'@public-assembly/zora-drops-utils': minor | ||
--- | ||
|
||
Added presale cannot mint cta |
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,5 @@ | ||
--- | ||
'@public-assembly/zora-drops-utils': minor | ||
--- | ||
|
||
Added custom ipfs gateway, and a more robust tx success component |
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,5 @@ | ||
--- | ||
'@public-assembly/zora-drops-utils': minor | ||
--- | ||
|
||
Add refresh rate and balanceof trigger to wagmi and drops contract provider" |
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,5 @@ | ||
--- | ||
'@public-assembly/zora-drops-utils': minor | ||
--- | ||
|
||
Added presale data |
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,5 @@ | ||
--- | ||
'@public-assembly/zora-drops-utils': minor | ||
--- | ||
|
||
Max supply not number sold out bug |
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,5 @@ | ||
--- | ||
'@public-assembly/zora-drops-utils': patch | ||
--- | ||
|
||
Added conteractURI data as fallback if not edition contract |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import Link from "next/link" | ||
import { useRouter } from "next/router" | ||
|
||
const pages = [ | ||
{ | ||
slug: '/', | ||
title: 'Zora Drops Utils' | ||
}, | ||
{ | ||
slug: '/presale-mint', | ||
title: 'Presale Mint' | ||
}, | ||
{ | ||
slug: '/drops-metadata', | ||
title: 'Drops Metadata' | ||
}, | ||
] | ||
|
||
export function Navigation() { | ||
const router = useRouter() | ||
|
||
return ( | ||
<div className="flex flex-row gap-4"> | ||
{pages.map((page) => | ||
<Link passHref href={page.slug} key={page.slug}> | ||
<a style={{ | ||
color: router.asPath === page.slug ? 'red' : 'black' | ||
}}>{page.title}</a> | ||
</Link> | ||
)} | ||
</div> | ||
) | ||
} |
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,32 @@ | ||
import { DropsComponents, DropsContractProvider, DropsData } from "@public-assembly/zora-drops-utils" | ||
|
||
function Page() { | ||
return ( | ||
<section className="flex flex-col gap-4"> | ||
<h1>Render Drops Style Contract Metadata</h1> | ||
<DropsContractProvider collectionAddress="0xb603d89f9f87fda06cd80c4a04ec6dc0440b8f42" networkId="5" ipfsGateway="zora-prod.mypinata.cloud"> | ||
<DropsComponents.Thumbnail style={{maxWidth: 600}} /> | ||
<DropsComponents.Metadata /> | ||
<div className="flex flex-row gap-2"> | ||
<DropsComponents.MintButton /> | ||
<DropsComponents.MintQuantity /> | ||
</div> | ||
<DropsComponents.TxStatus /> | ||
<DropsData /> | ||
</DropsContractProvider> | ||
<h1>Render Editions Style Contract Metadata</h1> | ||
<DropsContractProvider collectionAddress="0x213b55e62323f918b3fb45ac02882a885f9b1da3" networkId="5" ipfsGateway="zora-prod.mypinata.cloud"> | ||
<DropsComponents.Thumbnail style={{maxWidth: 600}} /> | ||
<DropsComponents.Metadata /> | ||
<div className="flex flex-row gap-2"> | ||
<DropsComponents.MintButton /> | ||
<DropsComponents.MintQuantity /> | ||
</div> | ||
<DropsComponents.TxStatus /> | ||
<DropsData /> | ||
</DropsContractProvider> | ||
</section> | ||
) | ||
} | ||
|
||
export default Page |
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,32 @@ | ||
import { DropsComponents, DropsContractProvider, DropsData } from "@public-assembly/zora-drops-utils" | ||
|
||
function Page() { | ||
return ( | ||
<section className="flex flex-col gap-4"> | ||
<h1>Presale Mint / Allowlist</h1> | ||
<DropsContractProvider collectionAddress="0x213b55e62323f918b3fb45ac02882a885f9b1da3" networkId="5"> | ||
<DropsComponents.Thumbnail style={{maxWidth: 600}} /> | ||
<DropsComponents.Metadata /> | ||
<div className="flex flex-row gap-2"> | ||
<DropsComponents.MintButton /> | ||
<DropsComponents.MintQuantity /> | ||
</div> | ||
<DropsComponents.TxStatus /> | ||
<DropsData /> | ||
</DropsContractProvider> | ||
<hr></hr> | ||
<DropsContractProvider collectionAddress="0xa5c3340d5b27407997beb72eb30b7b234bec6e95" networkId="5"> | ||
<DropsComponents.Thumbnail style={{maxWidth: 600}} /> | ||
<DropsComponents.Metadata /> | ||
<div className="flex flex-row gap-2"> | ||
<DropsComponents.MintButton /> | ||
<DropsComponents.MintQuantity /> | ||
</div> | ||
<DropsComponents.TxStatus /> | ||
<DropsData /> | ||
</DropsContractProvider> | ||
</section> | ||
) | ||
} | ||
|
||
export default Page |
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 |
---|---|---|
|
@@ -61,9 +61,6 @@ | |
], | ||
"*.json": [ | ||
"prettier --write" | ||
], | ||
"**/*.{ts,tsx}": [ | ||
"tsc-files --noEmit" | ||
] | ||
}, | ||
"engines": { | ||
|
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,43 @@ | ||
/* @ts-ignore */ | ||
import * as React from 'react' | ||
import { useDropsContractProvider } from './../context/DropsContractProvider' | ||
|
||
export function DropsData({ data = {} }: { data?: any }) { | ||
const { | ||
collectionData, | ||
mintStatus, | ||
purchaseLimit, | ||
inventory, | ||
balance, | ||
errors, | ||
saleStatus, | ||
transaction, | ||
allowList, | ||
} = useDropsContractProvider() | ||
|
||
const dataToRender = React.useMemo( | ||
() => | ||
collectionData | ||
? { | ||
collectionData, | ||
transaction, | ||
mintStatus, | ||
saleStatus, | ||
purchaseLimit, | ||
inventory, | ||
balance, | ||
errors, | ||
allowList, | ||
} | ||
: data, | ||
[data, collectionData] | ||
) | ||
|
||
return ( | ||
<div className="raw-displayer relative w-full overflow-x-scroll rounded-xl bg-gray-200 px-5 py-3 text-left"> | ||
<code> | ||
<pre>{JSON.stringify(dataToRender, null, 2)}</pre> | ||
</code> | ||
</div> | ||
) | ||
} |
Oops, something went wrong.