code: function getContractAddress(transaction) {
      if (!transaction.from) {
          throw new Error('missing from address');
      }
      var nonce = transaction.nonce;
      return getAddress('0x' + keccak256_1.keccak256(rlp_1.encode([
          getAddress(transaction.from),
          bytes_1.stripZeros(bytes_1.hexlify(nonce))
      ])).substring(26));
  }
docs: http://ethereum.stackexchange.com/questions/760/how-is-the-address-of-an-ethereum-contract-computed