code: function normalizeConf (conf) {
    if (process.env.PROVIDER_URL) {
      conf.providerURL = process.env.PROVIDER_URL
    }
  
    if (process.env.WEBHOOK_URL) {
      conf.webhookURL = process.env.WEBHOOK_URL
    }
  
    if (process.env.AUTOSTART) {
      conf.autostart = yn(process.env.AUTOSTART)
    }
  
    if (process.env.PORT) {
      conf.port = Number(process.env.PORT)
    }
  
    conf.providerURL = conf.providerURL.replace(/\/+$/, '')
    if (!conf.webhookURL) {
      conf.webhookURL = `http://${ip.address()}:${conf.port}`
    }
  
    if (conf.autostart !== false) {
      conf.autostart = true
    }
  
    return conf
  }
docs: function convertTradleWrapper (wrapper) { // message object const { object } = wrapper const object = object.object return { object, message: object, raw: wrapper } }