|
|
@ -13,7 +13,12 @@ import { ethers, BigNumber } from 'ethers';
|
|
|
|
import Noty from 'noty';
|
|
|
|
import Noty from 'noty';
|
|
|
|
|
|
|
|
|
|
|
|
import ABI from './abi.json';
|
|
|
|
import ABI from './abi.json';
|
|
|
|
|
|
|
|
import Twitter from './img/twitter.png';
|
|
|
|
|
|
|
|
import Looksrare from './img/looksrare.png';
|
|
|
|
|
|
|
|
import Opensea from './img/opensea.png';
|
|
|
|
|
|
|
|
import X2Y2 from './img/x2y2.png';
|
|
|
|
import 'bulma/css/bulma.min.css';
|
|
|
|
import 'bulma/css/bulma.min.css';
|
|
|
|
|
|
|
|
import 'font-awesome/css/font-awesome.min.css';
|
|
|
|
import 'noty/lib/noty.css';
|
|
|
|
import 'noty/lib/noty.css';
|
|
|
|
import 'noty/lib/themes/relax.css';
|
|
|
|
import 'noty/lib/themes/relax.css';
|
|
|
|
|
|
|
|
|
|
|
@ -27,7 +32,7 @@ const { chains, provider } = configureChains(
|
|
|
|
const connector = new InjectedConnector({ chains });
|
|
|
|
const connector = new InjectedConnector({ chains });
|
|
|
|
|
|
|
|
|
|
|
|
const client = createClient({
|
|
|
|
const client = createClient({
|
|
|
|
autoConnect: false,
|
|
|
|
autoConnect: true,
|
|
|
|
connectors: [connector],
|
|
|
|
connectors: [connector],
|
|
|
|
provider
|
|
|
|
provider
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -251,6 +256,17 @@ function Contract() {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="block">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="buttons has-addons">
|
|
|
|
|
|
|
|
<a href="#" target={"_blank"} alt="twitter share" className="button"><img src={Twitter} width={"32px"} /></a>
|
|
|
|
|
|
|
|
<a href="#" target={"_blank"} alt="looksrare link" className="button"><img src={Looksrare} width={"32px"} /></a>
|
|
|
|
|
|
|
|
<a href="#" target={"_blank"} alt="x2y2 link" className="button"><img src={X2Y2} width={"32px"} /></a>
|
|
|
|
|
|
|
|
<a href="#" target={"_blank"} alt="opensea link" className="button"><img src={Opensea} width={"32px"} /></a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<hr></hr>
|
|
|
|
<hr></hr>
|
|
|
|
|
|
|
|
|
|
|
|
{options.totalSupply < options.max && (
|
|
|
|
{options.totalSupply < options.max && (
|
|
|
@ -301,12 +317,6 @@ function Contract() {
|
|
|
|
<div className="notification is-info">
|
|
|
|
<div className="notification is-info">
|
|
|
|
The secret hash containing the pre-determined winners is: <strong>{options.hash}</strong>
|
|
|
|
The secret hash containing the pre-determined winners is: <strong>{options.hash}</strong>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className="buttons has-addons">
|
|
|
|
|
|
|
|
<a href="#" target={"_blank"} alt="" className="button">Opensea</a>
|
|
|
|
|
|
|
|
<a href="#" target={"_blank"} alt="" className="button">Blur</a>
|
|
|
|
|
|
|
|
<a href="#" target={"_blank"} alt="" className="button">X2Y2</a>
|
|
|
|
|
|
|
|
<a href="#" target={"_blank"} alt="" className="button">Looksrare</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</>
|
|
|
|
</>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
if (isConnected && !options.phraseSet)
|
|
|
|
if (isConnected && !options.phraseSet)
|
|
|
|