Added logging to contracts initialization script
The log is helpful for troubleshooting problems with environment.
@@ -21,6 +21,22 @@ module.exports = async function(deployer, network) {
// Don't enact this setup during unit testing.
if (process.env.NODE_ENV == "test" && !process.env.INTEGRATION_TEST) return
+ const keepThreshold = 3
+ const groupSize = 3
+
+ console.debug(
+ `Initializing TBTCSystem [${TBTCSystem.address}] with:\n` +
+ ` keepVendor: ${BondedECDSAKeepVendorAddress}\n` +
+ ` depositFactory: ${DepositFactory.address}\n` +
+ ` masterDepositAddress: ${Deposit.address}\n` +
+ ` tbtcToken: ${TBTCToken.address}\n` +
+ ` tbtcDepositToken: ${TBTCDepositToken.address}\n` +
+ ` feeRebateToken: ${FeeRebateToken.address}\n` +
+ ` vendingMachine: ${VendingMachine.address}\n` +
+ ` keepThreshold: ${keepThreshold}\n` +
+ ` keepSize: ${groupSize}`,
+ )
+
// System.
const tbtcSystem = await TBTCSystem.deployed()
await tbtcSystem.initialize(
@@ -31,10 +47,12 @@ module.exports = async function(deployer, network) {
TBTCDepositToken.address,
FeeRebateToken.address,
VendingMachine.address,
- 3,
- 3,
+ keepThreshold,
+ groupSize,
)
+ console.log("TBTCSystem initialized!")
+
// Price feed.
const btcEthPriceFeed = await BTCETHPriceFeed.deployed()
if (network === "mainnet") {
