-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtruffle-config.js
More file actions
23 lines (22 loc) · 930 Bytes
/
Copy pathtruffle-config.js
File metadata and controls
23 lines (22 loc) · 930 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const { readFileSync } = require('fs')
const path = require('path')
const { join } = require('path')
const LoomTruffleProvider = require('loom-truffle-provider')
const HDWalletProvider = require('truffle-hdwallet-provider')
module.exports = {
contracts_build_directory: join(__dirname, './src/contracts'),
networks: {
loom_dapp_chain: {
provider: function() {
const privateKey = readFileSync(path.join(__dirname, 'private_key'), 'utf-8')
const chainId = 'default'
const writeUrl = 'http://127.0.0.1:46658/rpc'
const readUrl = 'http://127.0.0.1:46658/query'
const loomTruffleProvider = new LoomTruffleProvider(chainId, writeUrl, readUrl, privateKey)
loomTruffleProvider.createExtraAccountsFromMnemonic("gravity top burden flip student usage spell purchase hundred improve check genre", 10)
return loomTruffleProvider
},
network_id: '*'
}
}
}