-
Notifications
You must be signed in to change notification settings - Fork 23
/
deploy-config.js
39 lines (38 loc) · 1.49 KB
/
deploy-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
* Setup deployment variables based on network. Intended to be passed from a truffle migration
* script.
*
* @param {*} network The network name passed from truffle
* @param {*} accounts The accounts array passed from truffle
* @returns NetworkConfig
*/
function getDeployConfig(network, accounts) {
if (["bsc", "bsc-fork"].includes(network)) {
console.log(`Deploying with BSC MAINNET config.`)
return {
admin: "0x6c905b4108A87499CEd1E0498721F2B831c6Ab13",
name: "Non Fungible Apes",
symbol: "NFAv2",
baseTokenURI: "ipfs://QmWxfSboc5r9oywP1wj6a8aVHNTor5UNJ8Kpz4YDKia8rf/", // Production NFA IPFS location
}
} else if (['bsc-testnet', 'bsc-testnet-fork'].includes(network)) {
console.log(`Deploying with BSC testnet config.`)
return {
admin: "0xE375D169F8f7bC18a544a6e5e546e63AD7511581", // Testnet
name: "Non Fungible Apes",
symbol: "NFAv2",
baseTokenURI: "ipfs://QmWxfSboc5r9oywP1wj6a8aVHNTor5UNJ8Kpz4YDKia8rf/",
}
} else if (['development'].includes(network)) {
console.log(`Deploying with development config.`)
return {
admin: "",
name: "Non Fungible Apes",
symbol: "NFAv2",
baseTokenURI: "ipfs://QmWxfSboc5r9oywP1wj6a8aVHNTor5UNJ8Kpz4YDKia8rf",
}
} else {
throw new Error(`No config found for network ${network}.`)
}
}
module.exports = { getDeployConfig };