First commit
This commit is contained in:
66
tronbox.js
Normal file
66
tronbox.js
Normal file
@@ -0,0 +1,66 @@
|
||||
const port = process.env.HOST_PORT || 9090
|
||||
|
||||
module.exports = {
|
||||
networks: {
|
||||
mainnet: {
|
||||
// Don't put your private key here:
|
||||
privateKey: process.env.PRIVATE_KEY_MAINNET,
|
||||
/*
|
||||
Create a .env file (it must be gitignored) containing something like
|
||||
|
||||
export PRIVATE_KEY_MAINNET=4E7FEC...656243
|
||||
|
||||
Then, run the migration with:
|
||||
|
||||
source .env && tronbox migrate --network mainnet
|
||||
|
||||
*/
|
||||
userFeePercentage: 100,
|
||||
feeLimit: 1000 * 1e6,
|
||||
fullHost: 'https://api.trongrid.io',
|
||||
network_id: '1'
|
||||
},
|
||||
shasta: {
|
||||
privateKey: process.env.PRIVATE_KEY_SHASTA,
|
||||
userFeePercentage: 50,
|
||||
feeLimit: 1000 * 1e6,
|
||||
fullHost: 'https://api.shasta.trongrid.io',
|
||||
network_id: '2'
|
||||
},
|
||||
nile: {
|
||||
privateKey: process.env.PRIVATE_KEY_NILE,
|
||||
userFeePercentage: 100,
|
||||
feeLimit: 1000 * 1e6,
|
||||
fullHost: 'https://nile.trongrid.io',
|
||||
network_id: '3'
|
||||
},
|
||||
development: {
|
||||
// For tronbox/tre docker image
|
||||
privateKey: '0000000000000000000000000000000000000000000000000000000000000001',
|
||||
userFeePercentage: 0,
|
||||
feeLimit: 1000 * 1e6,
|
||||
fullHost: 'http://127.0.0.1:' + port,
|
||||
network_id: '9'
|
||||
},
|
||||
compilers: {
|
||||
solc: {
|
||||
version: "0.8.20", // Specify a Solidity version >= 0.8.20
|
||||
settings: {
|
||||
optimizer: {
|
||||
enabled: true,
|
||||
runs: 200
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// solc compiler optimize
|
||||
solc: {
|
||||
optimizer: {
|
||||
enabled: true,
|
||||
runs: 200
|
||||
},
|
||||
evmVersion: 'istanbul',
|
||||
viaIR: true,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user