-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathalephium.config.ts
54 lines (42 loc) · 1.68 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
51
52
53
54
import { Configuration } from '@alephium/cli'
import { Number256 } from '@alephium/web3'
// import { deriveHDWalletPrivateKey } from '@alephium/web3-wallet';
// import { publicKeyFromPrivateKey, addressFromPublicKey } from '@alephium/web3';
// Settings are usually for configuring
export type Settings = {
issueTokenAmount: Number256
}
const defaultSettings: Settings = { issueTokenAmount: 100n }
// const mnemonic = "wizards are the best"
// const devnetPrivateKeys = [
// deriveHDWalletPrivateKey(mnemonic, 'default', 0)
// ];
// const publicKey = publicKeyFromPrivateKey(devnetPrivateKeys[0], 'default');
// const address = addressFromPublicKey(publicKey, 'default');
// console.log('Private Key:', devnetPrivateKeys);
// console.log('Public Key:', publicKey);
// console.log('Address:', address);
const configuration: Configuration<Settings> = {
networks: {
mainnet: {
// nodeUrl: process.env.NODE_URL as string ?? 'https://wallet-v20.mainnet.alephium.org',
nodeUrl: 'https://node.mainnet.alephium.org',
privateKeys: process.env.MAINNET_PRIVATE_KEYS ? process.env.MAINNET_PRIVATE_KEYS.split(',') : [],
settings: defaultSettings
},
devnet: {
nodeUrl: 'http://localhost:22973',
privateKeys: [
'a642942e67258589cd2b1822c631506632db5a12aabcf413604e785300d762a5', // group 0
],
// privateKeys: devnetPrivateKeys,
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
},
}
}
export default configuration