You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project is meant to be used as a template to build Art Blocks Engine web apps. It contains all of the pages and views necessary for users to browse projects, tokens and be able to purchase mints. This repository serves as a prototype or template.
4
+
This project is meant to be used as a template to build Art Blocks Engine web apps. It contains all pages and views
5
+
necessary for users to browse projects, tokens and be able to purchase mints. This repository serves as a prototype or
6
+
template.
5
7
6
-
It assumes your core contract is `GenArt721CoreV3` and your minting contract is `MinterDAExpV4` with all sales priced in ETH.
8
+
It assumes your core contracts are either `GenArt721CoreV2` or `GenArt721CoreV3`, and supports the following minters:
9
+
`GenArt721Minter`, `MinterSetPriceV4`, `MinterSetPriceERC20V4`, `MinterMerkleV5`, and `MinterHolderV4`.
7
10
8
-
It is NOT intended for production use as-is. Please modify for your needs and test extensively before using.
11
+
It is NOT intended for production use as-is. Please modify for your needs and test extensively before using.
9
12
10
13
Absolutely no warranty of any kind is provided. Please review from The MIT License:
11
14
@@ -23,50 +26,75 @@ SOFTWARE.**
23
26
24
27
Run `npm install` or `yarn` to install dependencies.
25
28
26
-
To run the project locally you will need to create a `.env` configuration file. You can get started by copying `sample.env` and renaming it as `.env`.
27
-
28
-
**Important note:** if you are planning to run/host this template via Vercel, you will populate these environment variables in the Vercel "Environment Variables" settings rather than defining them in your local `.env` file.
29
+
To run the project locally you will need to create a `.env` configuration file. You can get started by copying
30
+
`sample.env` and renaming it as `.env`.
29
31
30
32
Run `npm start` or `yarn start` to run the project locally.
31
33
32
34
After making any changes to the `.env` file, you will need to restart the app.
33
35
34
-
The default values specified in the provided `sample.env` file are reflected in the demo hosting found at: https://artblocks-engine-react.vercel.app/
36
+
The default values specified in the provided `sample.env` file are reflected in the demo hosting found at:
37
+
https://artblocks-engine-react.vercel.app/
38
+
39
+
**Important note:** if you are planning to run/host this template via Vercel, you will populate these environment
40
+
variables in the Vercel "Environment Variables" settings rather than defining them in your local `.env` file.
41
+
42
+
[](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FArtBlocks%2Fartblocks-engine-react&env=REACT_APP_EXPECTED_CHAIN_ID,REACT_APP_GRAPHQL_URL,REACT_APP_INFURA_KEY&envDescription=Required%20environment%20variables%20for%20deployment&envLink=https%3A%2F%2Fgithub.com%2FArtBlocks%2Fartblocks-engine-react%2Fblob%2Fmain%2Fsample.env)
35
43
36
44
## Customizing your configuration
37
45
38
-
In order to customize your specific implementation, you will need to edit the default configuration provided on the `sample.env` file. First of all, you will need to replace the contract addresses with your own.
46
+
In order to customize your specific implementation, you will need to edit the default configuration provided on the
47
+
`sample.env` file.
48
+
49
+
You must specify an API key from [Infura](https://www.infura.io/) as well as a chain id in your environment file. Use
50
+
`1` for mainnet or `5` for goerli. Alternative providers can be used by modifying the `src/components/Providers.tsx`
51
+
file. Use multiple `.env` fiels to set up `development` or `staging` environments on `testnet` if you wish to do so.
39
52
40
-
You must specify an API key from [Infura](https://www.infura.io/) as well as a chain id in your environment file. Use `1` for mainnet or `5` for goerli. Alternative providers can be used by modifying the `src/components/Providers.tsx` file. Use multiple `.env` fiels to set up `development` or `staging` environments on `testnet` if you wish to do so.
53
+
Additionally, you will need to edit the default configuration in the `src/contractConfig.ts` file -
54
+
here you will find arrays for your mainnet and testnet contracts. Further configuration values like the number of
55
+
projects per page, tokens per page, etc. can be found in `src/config.ts`.
41
56
42
-
There are additional configuration values you could customize like the number of projects per page, or tokens per page. You will find those parameters in `src/config.ts`.
57
+
**Important note:** if you intend to support either of the `MinterMerkleV5` or `MinterHolderV4` minters there are a few
58
+
extra necessary requirements and configurations.
59
+
60
+
Support for the `MinterMerkleV5` minter requires a custom API endpoint that is responsible for calculating the merkle
61
+
root for a given wallet address - the url for this endpoint must be configured in the `.env` file with the
62
+
`REACT_APP_MERKLE_PROOF_API_URL` key. It is assumed that this endpoint takes the following url parameters:
63
+
`?contractAddress={}&projectId={}&walletAddress={}` - this can be customized in the
64
+
`src/components/MinterInterfaces/MinterMerkleV5Interface.tsx` file. For an example of this endpoint please see
0 commit comments