Skip to content

Commit d356479

Browse files
authored
updates from ipad
1 parent 577ab16 commit d356479

File tree

2 files changed

+37
-7
lines changed

2 files changed

+37
-7
lines changed

backend/src/config.js

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,21 @@ const AUTH = "cd604374-c889-404a-b6e7-cdb0dcb1e892";
4747
const LIMIT = 2; // Your API key rate limit
4848
const CONTRACT_NAME = 'testSTACKr Collection';
4949
const CONTRACT_SYMBOL = 'TSC';
50-
const CONTRACT_TYPE = 'erc721';
51-
const MINT_TO_ADDRESS = '0xd8B808A887326F45B2D0cd999709Aa6264CeF919';
52-
// const MINT_TO_ADDRESS = 'YOUR WALLET ADDRESS HERE';
50+
const OWNER_ADDRESS = '0xd8B808A887326F45B2D0cd999709Aa6264CeF919';
51+
// const OWNER_ADDRESS = 'YOUR WALLET ADDRESS HERE';
52+
const TREASURY_ADDRESS = '0xd8B808A887326F45B2D0cd999709Aa6264CeF919';
53+
// const TREASURY_ADDRESS = 'TREASURY WALLET ADDRESS HERE';
54+
const MAX_SUPPLY = 5000; // The maximum number of NFTs that can be minted. CANNOT BE UPDATED!
55+
const MINT_PRICE = 10; // Minting price per NFT in MATIC. CANNOT BE UPDATED!
56+
const TOKENS_PER_MINT = 10; // maximum number of NFTs a user can mint in a single transaction. CANNOT BE UPDATED!
57+
const PUBLIC_MINT_START_DATE = null;
58+
const PRESALE_MINT_START_DATE = null;
5359
const CHAIN = 'rinkeby';
5460
const METADATA_UPDATABLE = true; // set to false if you don't want to allow metadata updates after minting
5561
const ROYALTY_SHARE = 1000; // Percentage of the token price that goes to the royalty address. 100 bps = 1%
5662
const ROYALTY_ADDRESS = "0xd8B808A887326F45B2D0cd999709Aa6264CeF919"; // Address that will receive the royalty
63+
const BASE_URI = null;
64+
const PREREVEAL_TOKEN_URI = null;
5765
// ** OPTIONAL **
5866
let CONTRACT_ADDRESS = "YOUR CONTRACT ADDRESS"; // If you want to manually include it
5967
// Generic Metadata is optional if you want to reveal your NFTs
@@ -165,7 +173,8 @@ module.exports = {
165173
AUTH,
166174
LIMIT,
167175
CONTRACT_ADDRESS,
168-
MINT_TO_ADDRESS,
176+
OWNER_ADDRESS,
177+
TREASURY_ADDRESS,
169178
CHAIN,
170179
GENERIC,
171180
GENERIC_TITLE,
@@ -179,4 +188,11 @@ module.exports = {
179188
METADATA_UPDATABLE,
180189
ROYALTY_SHARE,
181190
ROYALTY_ADDRESS,
191+
MAX_SUPPLY,
192+
MINT_PRICE,
193+
TOKENS_PER_MINT,
194+
PRESALE_MINT_START_DATE,
195+
PUBLIC_MINT_START_DATE,
196+
BASE_URI,
197+
PREREVEAL_TOKEN_URI
182198
};

backend/utils/nftport/deployContract.js

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,17 @@ const {
1111
CONTRACT_NAME,
1212
CONTRACT_SYMBOL,
1313
CONTRACT_TYPE,
14-
MINT_TO_ADDRESS,
1514
METADATA_UPDATABLE,
1615
ROYALTY_SHARE,
1716
ROYALTY_ADDRESS,
17+
MAX_SUPPLY,
18+
MINT_PRICE,
19+
OWNER_ADDRESS,
20+
TREASURY_ADDRESS,
21+
PUBLIC_MINT_START_DATE,
22+
BASE_URI,
23+
PREREVEAL_TOKEN_URI,
24+
PRESALE_MINT_START_DATE
1825
} = require(`${basePath}/src/config.js`);
1926

2027
const deployContract = async () => {
@@ -38,11 +45,18 @@ const deployContract = async () => {
3845
chain: CHAIN.toLowerCase(),
3946
name: CONTRACT_NAME,
4047
symbol: CONTRACT_SYMBOL,
41-
owner_address: MINT_TO_ADDRESS,
42-
type: CONTRACT_TYPE,
48+
owner_address: OWNER_ADDRESS,
4349
metadata_updatable: METADATA_UPDATABLE,
4450
royalties_share: ROYALTY_SHARE,
4551
royalties_address: ROYALTY_ADDRESS,
52+
max_supply: MAX_SUPPLY,
53+
mint_price: MINT_PRICE,
54+
tokens_per_mint: TOKENS_PER_MINT,
55+
treasury_address: TREASURY_ADDRESS,
56+
public_mint_start_date: PUBLIC_MINT_START_DATE,
57+
presale_mint_start_date: PRESALE_MINT_START_DATE,
58+
base_uri: BASE_URI,
59+
prereveal_token_uri: PREREVEAL_TOKEN_URI,
4660
};
4761
const options = {
4862
method: "POST",

0 commit comments

Comments
 (0)