-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.js
51 lines (46 loc) · 1.62 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
import fs from "fs";
// Configure the following block for your mint.
const mintStatus = "inactive";
const tokenId = "";
const contractAddressMint = "";
const mintDate = "2023-09-15T06:25:36.020Z";
const nrMintingUtxos = 5;
const collectionSize = 5000;
const network = "mainnet";
const apiDomain = "https://example.com/";
const appName = "YourAppName";
// Chaingraph instance. This returns our UTXO information.
// Thanks Jason for running an awesome server.
const chaingraphUrl = "https://demo.chaingraph.cash/v1/graphql";
// Hide ipfs urls. Don't want to leak during mint.
const hideIPFSImages = true;
const hideIPFSIcons = true;
// Look for BCMR JSON file on data mount, if not found, then set a stub.
var bcmrJSON = {};
try {
bcmrJSON = JSON.parse(fs.readFileSync('data/bitcoin-cash-metadata-registry.json',
{ encoding: 'utf8', flag: 'r' }));
} catch (error) {
bcmrJSON = {
"$schema": "https://cashtokens.org/bcmr-v2.schema.json",
"version": {
"major": 1,
"minor": 0,
"patch": 0
},
"latestRevision": "2023-09-15T06:25:36.020Z",
"registryIdentity": {
"name": "CashNinjas Registry",
"description": "Registry for the CashNinjas collection.",
"uris": {
"icon": "https://ninjas.cash/images/registry.png",
"web": "https://ninjas.cash/",
"registry": apiDomain + ".well-known/bitcoin-cash-metadata-registry.json"
}
},
"identities": {
},
"license": "CC0-1.0"
};
}
export { appName, mintStatus, tokenId, contractAddressMint, mintDate, nrMintingUtxos, collectionSize, network, apiDomain, bcmrJSON, chaingraphUrl, hideIPFSImages, hideIPFSIcons };