-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathalephium.config.ts
34 lines (29 loc) · 1.03 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
import { Configuration } from '@alephium/cli'
import { Number256 } from '@alephium/web3'
// Settings are usually for configuring
export type Settings = {
issueTokenAmount: Number256
}
const defaultSettings: Settings = { issueTokenAmount: 100n }
const configuration: Configuration<Settings> = {
networks: {
devnet: {
nodeUrl: 'http://localhost:22973',
privateKeys: [
'a642942e67258589cd2b1822c631506632db5a12aabcf413604e785300d762a5' // group 0
],
settings: defaultSettings
},
testnet: {
nodeUrl: (process.env.NODE_URL as string) ?? 'https://wallet-v20.testnet.alephium.org',
privateKeys: process.env.PRIVATE_KEYS === undefined ? [] : process.env.PRIVATE_KEYS.split(','),
settings: defaultSettings
},
mainnet: {
nodeUrl: (process.env.NODE_URL as string) ?? 'https://wallet-v20.mainnet.alephium.org',
privateKeys: process.env.PRIVATE_KEYS === undefined ? [] : process.env.PRIVATE_KEYS.split(','),
settings: defaultSettings
}
}
}
export default configuration