-
Notifications
You must be signed in to change notification settings - Fork 0
/
alephium.config.ts
50 lines (44 loc) · 1.31 KB
/
alephium.config.ts
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
import { Configuration } from '@alephium/cli'
import { Number256 } from '@alephium/web3'
// Settings are usually for configuring
export type Settings = {
issueTokenAmount: Number256
openaiAPIKey?: string
ipfs?: {
infura?: {
projectId: string,
projectSecret: string
}
}
}
const defaultSettings: Settings = {
issueTokenAmount: 100n,
openaiAPIKey: process.env.OPENAI_API_KEY || '',
ipfs: {
infura: {
projectId: process.env.IPFS_INFURA_PROJECT_ID || '',
projectSecret: process.env.IPFS_INFURA_PROJECT_SECRET || ''
}
}
}
const configuration: Configuration<Settings> = {
networks: {
devnet: {
nodeUrl: 'http://localhost:22973',
// here we could configure which address groups to deploy the contract
privateKeys: ['a642942e67258589cd2b1822c631506632db5a12aabcf413604e785300d762a5'],
settings: defaultSettings
},
testnet: {
nodeUrl: process.env.NODE_URL as string,
privateKeys: process.env.PRIVATE_KEYS === undefined ? [] : process.env.PRIVATE_KEYS.split(','),
settings: defaultSettings
},
mainnet: {
nodeUrl: process.env.NODE_URL as string,
privateKeys: process.env.PRIVATE_KEYS === undefined ? [] : process.env.PRIVATE_KEYS.split(','),
settings: defaultSettings
}
}
}
export default configuration